Files: 043b2e20476159dcff94dd46890be1c353e9132e / feed / pull / profile.js
478 bytesRaw
1 | const nest = require('depnest') |
2 | const extend = require('xtend') |
3 | |
4 | exports.gives = nest('feed.pull.profile') |
5 | exports.needs = nest('sbot.pull.userFeed', 'first') |
6 | exports.create = function (api) { |
7 | return nest('feed.pull.profile', (id) => { |
8 | // handle last item passed in as lt |
9 | return function (opts) { |
10 | opts = extend(opts, { |
11 | id, lt: typeof opts.lt === 'object' ? opts.lt.value.sequence : opts.lt |
12 | }) |
13 | return api.sbot.pull.userFeed(opts) |
14 | } |
15 | }) |
16 | } |
17 |
Built with git-ssb-web