git ssb

1+

Daan Patchwork / patchwork



Tree: 770fe5e2a3d5973a5c9b7d0945b214c3b2ea6793

Files: 770fe5e2a3d5973a5c9b7d0945b214c3b2ea6793 / lib / depject / profile / async / avatar.js

380 bytesRaw
1const nest = require('depnest')
2const { onceTrue } = require('mutant')
3
4exports.needs = nest({
5 'sbot.obs.connection': 'first'
6})
7
8exports.gives = nest('profile.async.avatar')
9
10exports.create = function (api) {
11 return nest('profile.async.avatar', function (id, cb) {
12 onceTrue(api.sbot.obs.connection, sbot => {
13 sbot.patchwork.profile.avatar({ id }, cb)
14 })
15 })
16}
17

Built with git-ssb-web