Files: 1ed42bd9f36becb191c331ca40892cc3262c8e08 / modules / like.js
281 bytesRaw
1 | |
2 | var h = require('hyperscript') |
3 | |
4 | exports.message_content = function (msg) { |
5 | if(msg.value.content && msg.value.content.type === 'vote') |
6 | return h('div', msg.value.content.vote.value > 0 ? 'yup' : 'nah', |
7 | h('a', {href: '#/msg/'+msg.value.content.vote.link}, msg.key) |
8 | ) |
9 | } |
10 |
Built with git-ssb-web