From d4dfcf4d602dcdaa977d616bcda2dd7a4b8a25c4 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 5 Dec 2019 12:10:04 -1000 Subject: Make "previous" link in raw mode preserve raw and ooo modes --- lib/serve.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index cd63905..759477d 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -716,6 +716,7 @@ Serve.prototype.live = function (ext) { ph('table', {class: 'ssb-msgs'}, pull( self.app.sbot.createLogStream(opts), self.app.render.renderFeeds({ + serve: self, withGt: true, filter: q.filter, }), @@ -1672,6 +1673,7 @@ Serve.prototype.renderThreadPaginated = function (opts, feedId, q) { feed: opts && opts.feed, msgId: opts && opts.msgId, filter: this.query.filter, + serve: this, limit: Number(this.query.limit) || 12, }), function onLast(msg, cb) { @@ -1724,6 +1726,7 @@ Serve.prototype.renderRawMsgPage = function (id) { raw: raw, msgId: id, filter: this.query.filter, + serve: this, markdownSource: showMarkdownSource }), pull.map(u.toHTML), @@ -3970,6 +3973,7 @@ Serve.prototype.composer = function (opts, cb) { raw: raw, dualMarkdown: self.query.dualMd != null ? self.query.dualMd : self.conf.dualMarkdownPreview, + serve: self, filter: self.query.filter, }), pull.drain(function (el) { @@ -4022,6 +4026,7 @@ Serve.prototype.phPreview = function (content, opts) { pull.once(msg), this.app.unboxMessages(), this.app.render.renderFeeds({ + serve: self, raw: opts.raw, filter: this.query.filter, }), -- cgit v1.2.3