git ssb

10+

Matt McKegg / patchwork



Tree: 01436b0a000173e48f00729b2c1f7b5b3cc4243d

Files: 01436b0a000173e48f00729b2c1f7b5b3cc4243d / 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