Files: aefef382635ee1b4f4e8b5370d9dfa59f24fe15f / modules / feed.js
551 bytesRaw
1 | var ref = require('ssb-ref') |
2 | var h = require('hyperscript') |
3 | var extend = require('xtend') |
4 | |
5 | var plugs = require('patchbay/plugs') |
6 | var sbot_user_feed = plugs.first(exports.sbot_user_feed = []) |
7 | var avatar_profile = plugs.first(exports.avatar_profile = []) |
8 | var feed_summary = plugs.first(exports.feed_summary = []) |
9 | |
10 | exports.screen_view = function (id) { |
11 | if (ref.isFeed(id)) { |
12 | return feed_summary((opts) => { |
13 | return sbot_user_feed(extend(opts, {id: id})) |
14 | }, [ |
15 | h('div', [avatar_profile(id)]) |
16 | ], { |
17 | windowSize: 50 |
18 | }) |
19 | } |
20 | } |
21 |
Built with git-ssb-web