Browse Source

fix: feed page now correctly loads-more

Paul Frazee 5 years ago
parent
commit
316e9a6c78
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      ui/lib/pages/feed.js

+ 5
- 1
ui/lib/pages/feed.js View File

@@ -12,6 +12,10 @@ module.exports = function (pid) {
12 12
   // markup
13 13
 
14 14
   var feed = app.ssb.createFeedStream
15
+  var cursor = function (msg) {
16
+    if (msg)
17
+      return msg.value.timestamp
18
+  }
15 19
   if (pid) {
16 20
     feed = function (opts) {
17 21
       opts = opts || {}
@@ -23,7 +27,7 @@ module.exports = function (pid) {
23 27
   ui.setPage('feed', h('.layout-onecol',
24 28
     h('.layout-main',
25 29
       h('h3.text-center', 'Behind the Scenes ', h('small', 'Raw Data Feed')),
26
-      com.messageFeed({ feed: feed, render: com.messageSummary.raw, infinite: true })
30
+      com.messageFeed({ feed: feed, cursor: cursor, render: com.messageSummary.raw, infinite: true })
27 31
     )
28 32
   ))
29 33
 }

Loading…
Cancel
Save