git ssb

10+

Matt McKegg / patchwork



Tree: 9216a0ee5a7da1602222d794ef538ca059e1face

Files: 9216a0ee5a7da1602222d794ef538ca059e1face / modules / feed.js

551 bytesRaw
1var ref = require('ssb-ref')
2var h = require('hyperscript')
3var extend = require('xtend')
4
5var plugs = require('patchbay/plugs')
6var sbot_user_feed = plugs.first(exports.sbot_user_feed = [])
7var avatar_profile = plugs.first(exports.avatar_profile = [])
8var feed_summary = plugs.first(exports.feed_summary = [])
9
10exports.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