fix: feed page now correctly loads-more

这个提交包含在:
Paul Frazee 2015-10-05 14:45:16 -05:00
父节点 048042a8ba
当前提交 316e9a6c78
共有 1 个文件被更改,包括 5 次插入1 次删除

查看文件

@ -12,6 +12,10 @@ module.exports = function (pid) {
// markup
var feed = app.ssb.createFeedStream
var cursor = function (msg) {
if (msg)
return msg.value.timestamp
}
if (pid) {
feed = function (opts) {
opts = opts || {}
@ -23,7 +27,7 @@ module.exports = function (pid) {
ui.setPage('feed', h('.layout-onecol',
h('.layout-main',
h('h3.text-center', 'Behind the Scenes ', h('small', 'Raw Data Feed')),
com.messageFeed({ feed: feed, render: com.messageSummary.raw, infinite: true })
com.messageFeed({ feed: feed, cursor: cursor, render: com.messageSummary.raw, infinite: true })
)
))
}