Files: 134d423c26820a78c6bbfbc506df577e0673b6b2 / 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