Files: 7672098be439d5c9a07c4bbc2bd066d84993695f / all.js
518 bytesRaw
1 | var pull = require('pull-stream') |
2 | |
3 | module.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