git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit bc8bc25cb7b34a51f041ad7953c88c30a5ec976e

change yupps to digs

Ev Bogue committed on 7/19/2016, 4:31:13 PM
Parent: eeaba82cd174ef3af7ffc6f6bc0aa88d92a5c6ec

Files changed

modules/like.jschanged
modules/like.jsView
@@ -12,46 +12,46 @@
1212 exports.message_content = function (msg, sbot) {
1313 if(msg.value.content.type !== 'vote') return
1414 var link = msg.value.content.vote.link
1515 return h('div',
16- msg.value.content.vote.value > 0 ? 'yup' : 'nah',
16+ msg.value.content.vote.value > 0 ? 'Dug' : 'Undug',
1717 ' ', message_link(link)
1818 )
1919 }
2020
2121 exports.message_meta = function (msg, sbot) {
2222
23- var yupps = h('a')
23+ var digs = h('a')
2424
2525 pull(
2626 sbot_links({dest: msg.key, rel: 'vote'}),
2727 pull.collect(function (err, votes) {
2828 if(votes.length === 1)
29- yupps.textContent = ' 1 yup'
29+ digs.textContent = ' 1 Dig'
3030 if(votes.length)
31- yupps.textContent = ' ' + votes.length + ' yupps'
31+ digs.textContent = ' ' + votes.length + ' Digs'
3232 })
3333 )
3434
35- return yupps
35+ return digs
3636 }
3737
3838 exports.message_action = function (msg, sbot) {
3939 if(msg.value.content.type !== 'vote')
4040 return h('a', {href: '#', onclick: function () {
41- var yup = {
41+ var dig = {
4242 type: 'vote',
43- vote: { link: msg.key, value: 1, expression: 'yup' }
43+ vote: { link: msg.key, value: 1, expression: 'Dig' }
4444 }
4545 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) {
4747 return e && typeof e !== 'string' ? e.link : e
4848 })
49- yup.private = true
49+ dig.private = true
5050 }
5151 //TODO: actually publish...
5252
53- message_confirm(yup)
54- }}, 'yup')
53+ message_confirm(dig)
54+ }}, 'Dig')
5555
5656 }
5757

Built with git-ssb-web