Files: aad72867cbe28280ef4ec4382ea57bb4a777f332 / message / html / meta / channel.js
368 bytesRaw
1 | const h = require('mutant/h') |
2 | const nest = require('depnest') |
3 | |
4 | exports.gives = nest('message.html.meta') |
5 | |
6 | exports.create = (api) => { |
7 | return nest('message.html.meta', function renderChannel (msg) { |
8 | const { channel } = msg.value.content |
9 | if (channel && msg.value.content.type !== 'channel') return h('a.channel', {href: `#${channel}`}, [`#${channel}`]) |
10 | }) |
11 | } |
12 |
Built with git-ssb-web