git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: 73ce52087fc4eb16ae6fef1818817c6f2fcd5a52

Files: 73ce52087fc4eb16ae6fef1818817c6f2fcd5a52 / feed / pull / public.js

374 bytesRaw
1const nest = require('depnest')
2
3exports.gives = nest('feed.pull.public')
4exports.needs = nest('sbot.pull.feed', 'first')
5exports.create = function (api) {
6 return nest('feed.pull.public', (opts) => {
7 // handle last item passed in as lt
8 opts.lt = (opts.lt && opts.lt.value)
9 ? opts.lt.value.timestamp
10 : opts.lt
11 return api.sbot.pull.feed(opts)
12 })
13}
14

Built with git-ssb-web