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