diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/serve.js b/lib/serve.js index a377c04..9e1cbb5 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -382,11 +382,22 @@ Serve.prototype.search = function (ext) { Serve.prototype.live = function (ext) { var self = this + var q = self.query + var opts = { + live: true, + } + var gt = Number(q.gt) + if (gt) opts.gt = gt + else opts.old = false pull( - self.app.sbot.createLogStream({old: false}), - self.renderThread(), - self.wrapMessages(), + ph('table', {class: 'ssb-msgs'}, pull( + self.app.sbot.createLogStream(opts), + self.app.render.renderFeeds({ + withGt: true, + }), + pull.map(u.toHTML) + )), self.wrapPage('live'), self.respondSink(200, { 'Content-Type': ctype(ext), |