git ssb

0+

Dominic / yap-gatherings



Tree: c41a27a2d832340a4e31d5f78b95d182759bb0e2

Files: c41a27a2d832340a4e31d5f78b95d182759bb0e2 / 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