Files: 37d41ff61b662f01ec14293463dbe5afff14adf0 / gathering.js / index.js
359 bytesRaw
1 | var get = require('./get') |
2 | var Render = require('./render') |
3 | |
4 | //TODO: markdown. and attending link |
5 | |
6 | module.exports = function (opts) { |
7 | var api = this.api, contex = this.context |
8 | var sbot = this.sbot |
9 | return function (cb) { |
10 | get(sbot, opts.id, function (err, gathering) { |
11 | if(err) return cb(err) |
12 | cb(null, Render(api, gathering)) |
13 | }) |
14 | } |
15 | } |
16 | |
17 |
Built with git-ssb-web