git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: 4e6da41dc88b698ad0b584d4e6da31472316ddee

Files: 4e6da41dc88b698ad0b584d4e6da31472316ddee / 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