git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: 043b2e20476159dcff94dd46890be1c353e9132e

Files: 043b2e20476159dcff94dd46890be1c353e9132e / feed / pull / profile.js

478 bytesRaw
1const nest = require('depnest')
2const extend = require('xtend')
3
4exports.gives = nest('feed.pull.profile')
5exports.needs = nest('sbot.pull.userFeed', 'first')
6exports.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