Files: d6467d3650ae378a0c0509253c2ab80b74c89e7b / modules / like.js
392 bytesRaw
1 | |
2 | var h = require('hyperscript') |
3 | var u = require('../util') |
4 | |
5 | exports.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 | |
13 | exports.message_link = [] |
14 | |
15 | |
16 |
Built with git-ssb-web