git ssb

2+

ev / mvd



Tree: b841ee31c64281cfb19407453fbbef54f5ef6e95

Files: b841ee31c64281cfb19407453fbbef54f5ef6e95 / render.js

393 bytesRaw
1var h = require('hyperscript')
2
3var human = require('human-time')
4
5var markdown = require('ssb-markdown')
6
7module.exports = function (msg) {
8 if (msg.value.content.type == 'post') {
9 return h('div.message__content',
10 h('span.timestamp', h('a', {href: msg.key}, human(new Date(msg.value.timestamp)))),
11 msg.value.author,
12 msg.value.content.text
13 )
14 } else { return }
15}
16

Built with git-ssb-web