git ssb

10+

Matt McKegg / patchwork



Tree: 9bb4dd6572b0113dd462049c31d372b6062f9ac5

Files: 9bb4dd6572b0113dd462049c31d372b6062f9ac5 / 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