git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: c18b233c6d62741496978cd8dc1f34a093946f8b

Files: c18b233c6d62741496978cd8dc1f34a093946f8b / message / html / author.js

381 bytesRaw
1const h = require('mutant/h')
2const nest = require('depnest')
3
4exports.needs = nest('obs.about.name', 'first')
5
6exports.gives = nest('obs.'){
7 message_author: true
8}
9
10exports.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