git ssb

16+

Dominic / patchbay



Tree: 00b7dc676f3599b4be16806c7ce93abbd9c724c5

Files: 00b7dc676f3599b4be16806c7ce93abbd9c724c5 / modules / like.js

392 bytesRaw
1
2var h = require('hyperscript')
3var u = require('../util')
4
5exports.message_content = function (msg, sbot) {
6 if(msg.value.content.type !== 'vote') return
7 var link = msg.value.content.vote.link
8 return h('div', msg.value.content.vote.value > 0 ? 'yup' : 'nah',
9 u.decorate(exports.message_link, link, function (d, e, v) { return d(e, v, sbot) })
10 )
11}
12
13exports.message_link = []
14
15
16

Built with git-ssb-web