Commit bc8bc25cb7b34a51f041ad7953c88c30a5ec976e
change yupps to digs
Ev Bogue committed on 7/19/2016, 4:31:13 PMParent: eeaba82cd174ef3af7ffc6f6bc0aa88d92a5c6ec
Files changed
modules/like.js | changed |
modules/like.js | ||
---|---|---|
@@ -12,46 +12,46 @@ | ||
12 | 12 | exports.message_content = function (msg, sbot) { |
13 | 13 | if(msg.value.content.type !== 'vote') return |
14 | 14 | var link = msg.value.content.vote.link |
15 | 15 | return h('div', |
16 | - msg.value.content.vote.value > 0 ? 'yup' : 'nah', | |
16 | + msg.value.content.vote.value > 0 ? 'Dug' : 'Undug', | |
17 | 17 | ' ', message_link(link) |
18 | 18 | ) |
19 | 19 | } |
20 | 20 | |
21 | 21 | exports.message_meta = function (msg, sbot) { |
22 | 22 | |
23 | - var yupps = h('a') | |
23 | + var digs = h('a') | |
24 | 24 | |
25 | 25 | pull( |
26 | 26 | sbot_links({dest: msg.key, rel: 'vote'}), |
27 | 27 | pull.collect(function (err, votes) { |
28 | 28 | if(votes.length === 1) |
29 | - yupps.textContent = ' 1 yup' | |
29 | + digs.textContent = ' 1 Dig' | |
30 | 30 | if(votes.length) |
31 | - yupps.textContent = ' ' + votes.length + ' yupps' | |
31 | + digs.textContent = ' ' + votes.length + ' Digs' | |
32 | 32 | }) |
33 | 33 | ) |
34 | 34 | |
35 | - return yupps | |
35 | + return digs | |
36 | 36 | } |
37 | 37 | |
38 | 38 | exports.message_action = function (msg, sbot) { |
39 | 39 | if(msg.value.content.type !== 'vote') |
40 | 40 | return h('a', {href: '#', onclick: function () { |
41 | - var yup = { | |
41 | + var dig = { | |
42 | 42 | type: 'vote', |
43 | - vote: { link: msg.key, value: 1, expression: 'yup' } | |
43 | + vote: { link: msg.key, value: 1, expression: 'Dig' } | |
44 | 44 | } |
45 | 45 | if(msg.value.content.recps) { |
46 | - yup.recps = msg.value.content.recps.map(function (e) { | |
46 | + dig.recps = msg.value.content.recps.map(function (e) { | |
47 | 47 | return e && typeof e !== 'string' ? e.link : e |
48 | 48 | }) |
49 | - yup.private = true | |
49 | + dig.private = true | |
50 | 50 | } |
51 | 51 | //TODO: actually publish... |
52 | 52 | |
53 | - message_confirm(yup) | |
54 | - }}, 'yup') | |
53 | + message_confirm(dig) | |
54 | + }}, 'Dig') | |
55 | 55 | |
56 | 56 | } |
57 | 57 |
Built with git-ssb-web