git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: 0b68762e851dab73abc45fa60add0d96d3b5c7ac

Files: 0b68762e851dab73abc45fa60add0d96d3b5c7ac / message / html / meta / channel.js

368 bytesRaw
1const h = require('mutant/h')
2const nest = require('depnest')
3
4exports.gives = nest('message.html.meta')
5
6exports.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