git ssb

0+

Dominic / yap-gatherings



Tree: 94f0e4dd667e6f3e2c417ed1c141aaa49f8cdf08

Files: 94f0e4dd667e6f3e2c417ed1c141aaa49f8cdf08 / all.js

518 bytesRaw
1var pull = require('pull-stream')
2
3module.exports = function (opts) {
4 var sbot = this.sbot, api = this.api
5 return ['div.Gatherings',
6 ['title', 'Gatherings'],
7 pull(
8 sbot.query.read({
9 query: [{$filter:{
10 value: {content: {type: 'gathering'}},
11 author: opts.author,
12 }}],
13 limit: 30,
14 reverse: true
15 }),
16 pull.map(function (data) {
17 return api.gathering({
18 id: data.key, private: !!opts.private,
19 })
20 })
21 )
22 ]
23}
24
25
26

Built with git-ssb-web