git ssb

7+

dinoworm 🐛 / patchcore



Commit 2fa730eec372caa5716f6f3d614b8f6bf59a5616

change like expression to "Like"

Matt McKegg committed on 6/28/2017, 7:37:47 AM
Parent: ebe8d562f226c534e1f12af64c355eb6ba6dba13

Files changed

message/html/action/like.jschanged
message/html/action/like.jsView
@@ -25,24 +25,24 @@
2525 )
2626 })
2727
2828 function publishLike (msg, status = true) {
29- var dig = status ? {
29 + var like = status ? {
3030 type: 'vote',
3131 channel: msg.value.content.channel,
32- vote: { link: msg.key, value: 1, expression: 'Dig' }
32 + vote: { link: msg.key, value: 1, expression: 'Like' }
3333 } : {
3434 type: 'vote',
3535 channel: msg.value.content.channel,
36- vote: { link: msg.key, value: 0, expression: 'Undig' }
36 + vote: { link: msg.key, value: 0, expression: 'Unlike' }
3737 }
3838 if (msg.value.content.recps) {
39- dig.recps = msg.value.content.recps.map(function (e) {
39 + like.recps = msg.value.content.recps.map(function (e) {
4040 return e && typeof e !== 'string' ? e.link : e
4141 })
42- dig.private = true
42 + like.private = true
4343 }
44- api.sbot.async.publish(dig)
44 + api.sbot.async.publish(like)
4545 }
4646 }
4747
4848 function doesLike (likes, userId) {

Built with git-ssb-web