Commit 2fa730eec372caa5716f6f3d614b8f6bf59a5616
change like expression to "Like"
Matt McKegg committed on 6/28/2017, 7:37:47 AMParent: ebe8d562f226c534e1f12af64c355eb6ba6dba13
Files changed
message/html/action/like.js | changed |
message/html/action/like.js | |||
---|---|---|---|
@@ -25,24 +25,24 @@ | |||
25 | 25 … | ) | |
26 | 26 … | }) | |
27 | 27 … | ||
28 | 28 … | function publishLike (msg, status = true) { | |
29 | - var dig = status ? { | ||
29 … | + var like = status ? { | ||
30 | 30 … | type: 'vote', | |
31 | 31 … | channel: msg.value.content.channel, | |
32 | - vote: { link: msg.key, value: 1, expression: 'Dig' } | ||
32 … | + vote: { link: msg.key, value: 1, expression: 'Like' } | ||
33 | 33 … | } : { | |
34 | 34 … | type: 'vote', | |
35 | 35 … | channel: msg.value.content.channel, | |
36 | - vote: { link: msg.key, value: 0, expression: 'Undig' } | ||
36 … | + vote: { link: msg.key, value: 0, expression: 'Unlike' } | ||
37 | 37 … | } | |
38 | 38 … | 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) { | ||
40 | 40 … | return e && typeof e !== 'string' ? e.link : e | |
41 | 41 … | }) | |
42 | - dig.private = true | ||
42 … | + like.private = true | ||
43 | 43 … | } | |
44 | - api.sbot.async.publish(dig) | ||
44 … | + api.sbot.async.publish(like) | ||
45 | 45 … | } | |
46 | 46 … | } | |
47 | 47 … | ||
48 | 48 … | function doesLike (likes, userId) { |
Built with git-ssb-web