Files: f80296e49e5bd1b20ac5c2df3b224d7b61c2d43d / modules / page / html / render / mentions.js
508 bytesRaw
1 | var { h, when } = require('mutant') |
2 | var nest = require('depnest') |
3 | |
4 | exports.needs = nest({ |
5 | 'feed.html.rollup': 'first', |
6 | 'keys.sync.id': 'first', |
7 | 'feed.pull.mentions': 'first' |
8 | }) |
9 | |
10 | exports.gives = nest('page.html.render') |
11 | |
12 | exports.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