Commit 394a9948ac30959a4068090a0ca311090e15a607
add channel to likes
Matt McKegg committed on 4/8/2017, 10:59:24 AMParent: bf11fb1415cc7ffb6d5a37e90c86dc8ca73f482d
Files changed
message/html/action/like.js | changed |
message/html/action/like.js | |||
---|---|---|---|
@@ -29,11 +29,13 @@ | |||
29 | 29 … | ||
30 | 30 … | function publishLike (msg, status = true) { | |
31 | 31 … | var dig = status ? { | |
32 | 32 … | type: 'vote', | |
33 … | + channel: msg.value.content.channel, | ||
33 | 34 … | vote: { link: msg.key, value: 1, expression: 'Dig' } | |
34 | 35 … | } : { | |
35 | 36 … | type: 'vote', | |
37 … | + channel: msg.value.content.channel, | ||
36 | 38 … | vote: { link: msg.key, value: 0, expression: 'Undig' } | |
37 | 39 … | } | |
38 | 40 … | if (msg.value.content.recps) { | |
39 | 41 … | dig.recps = msg.value.content.recps.map(function (e) { |
Built with git-ssb-web