diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-05 12:10:04 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-07 16:35:45 -1000 |
commit | d4dfcf4d602dcdaa977d616bcda2dd7a4b8a25c4 (patch) | |
tree | 08d9402646b38eaa3f33c2ab981b31a4141646fc /lib/serve.js | |
parent | 7bd18ab4e39dbd1bc8339eae0daf9166a07a5dfa (diff) | |
download | patchfoo-d4dfcf4d602dcdaa977d616bcda2dd7a4b8a25c4.tar.gz patchfoo-d4dfcf4d602dcdaa977d616bcda2dd7a4b8a25c4.zip |
Make "previous" link in raw mode preserve raw and ooo modes
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 5 |
1 files changed, 5 insertions, 0 deletions
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, }), |