git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: f80296e49e5bd1b20ac5c2df3b224d7b61c2d43d

Files: f80296e49e5bd1b20ac5c2df3b224d7b61c2d43d / modules / page / html / render / mentions.js

508 bytesRaw
1var { h, when } = require('mutant')
2var nest = require('depnest')
3
4exports.needs = nest({
5 'feed.html.rollup': 'first',
6 'keys.sync.id': 'first',
7 'feed.pull.mentions': 'first'
8})
9
10exports.gives = nest('page.html.render')
11
12exports.create = function (api) {
13 return nest('page.html.render', function mentions (path) {
14 if (path !== '/mentions') return
15 var id = api.keys.sync.id()
16 return api.feed.html.rollup(api.feed.pull.mentions(id), {
17 windowSize: 20,
18 partial: true
19 })
20 })
21}
22

Built with git-ssb-web