git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: 62ee1b7bfd9fae4bbec8650f48cc6d5494403927

Files: 62ee1b7bfd9fae4bbec8650f48cc6d5494403927 / 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