Files: 7843b07831ea4e4665e69676cbf74a669bf57874 / feed / pull / public.js
388 bytesRaw
1 | const nest = require('depnest') |
2 | |
3 | exports.gives = nest('feed.pull.public') |
4 | exports.needs = nest('sbot.pull.feed', 'first') |
5 | exports.create = function (api) { |
6 | return nest('feed.pull.public', (opts) => { |
7 | // handle last item passed in as lt |
8 | opts.lt = (opts.lt && typeof opts.lt === 'object') |
9 | ? opts.lt.value.timestamp |
10 | : opts.lt |
11 | return api.sbot.pull.feed(opts) |
12 | }) |
13 | } |
14 |
Built with git-ssb-web