git ssb

16+

Dominic / patchbay



Tree: 94fee4c60e06e9664fbbc1e09f7208d11ba546b6

Files: 94fee4c60e06e9664fbbc1e09f7208d11ba546b6 / message / html / meta / private.js

435 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('message.html.meta')
5
6exports.needs = nest({
7 'about.obs.name': 'first',
8 'message.obs.likes': 'first'
9})
10
11exports.create = (api) => {
12 return nest('message.html.meta', private)
13
14 function private (msg) {
15 if (msg.value.private) {
16 return h('i.fa.fa-lock', {
17 title: 'Private'
18 })
19 } else {
20 return null;
21 }
22 }
23}
24

Built with git-ssb-web