Files: 3e002b3d827c2d8867edbf6541a3e6eadc4b32b6 / modules / feed.js
485 bytesRaw
1 | var ref = require('ssb-ref') |
2 | var ui = require('../ui') |
3 | var Scroller = require('pull-scroll') |
4 | |
5 | var plugs = require('../plugs') |
6 | var sbot_user_feed = plugs.first(exports.sbot_user_feed = []) |
7 | var message_render = plugs.first(exports.message_render = []) |
8 | |
9 | exports.screen_view = function (id, sbot) { |
10 | //TODO: header of user info, avatars, names, follows. |
11 | |
12 | if(ref.isFeed(id)) { |
13 | return ui.createStream( |
14 | sbot_user_feed({id: id, reverse: true}), |
15 | message_render |
16 | ) |
17 | } |
18 | } |
19 | |
20 | |
21 |
Built with git-ssb-web