Files: 2faca8a26207e316f21cadb9222ed640b7e76c16 / message / html / author.js
387 bytesRaw
1 | const h = require('mutant/h') |
2 | const nest = require('depnest') |
3 | |
4 | exports.needs = nest('about.obs.name', 'first') |
5 | |
6 | exports.gives = nest('message.html.author') |
7 | |
8 | exports.create = function (api) { |
9 | return nest('message.html.author', messageAuthor) |
10 | |
11 | function messageAuthor (msg) { |
12 | return h('div', {title: msg.value.author}, [ |
13 | '@', api.about.obs.name(msg.value.author) |
14 | ]) |
15 | } |
16 | } |
17 |
Built with git-ssb-web