aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-12-30 11:36:41 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-12-31 22:04:23 -0500
commit5be1b3cc78358abd45376b05e9d59fecb67402f8 (patch)
tree0b9f565c108ea70f592e64e7fb840ba6b158a9d8 /lib/render.js
parentb729872005ad1fea03e7c96e496823c0784c75c1 (diff)
downloadpatchfoo-5be1b3cc78358abd45376b05e9d59fecb67402f8.tar.gz
patchfoo-5be1b3cc78358abd45376b05e9d59fecb67402f8.zip
Add printView and noThread query string options
- printView: no nav header, footer, action links, composer, or avatar. - noThread: show only the target message, no replies/mentions.
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/render.js b/lib/render.js
index df5d1c6..680ba39 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -372,11 +372,13 @@ Render.prototype.idLinkCopyable = function (link, cb) {
return a
}
-Render.prototype.privateLine = function (recps, isAuthorRecp, cb) {
+Render.prototype.privateLine = function (opts, cb) {
+ var recps = opts.recps
+ var isAuthorRecp = opts.isAuthorRecp
var done = multicb({pluck: 1, spread: true})
var self = this
var el = h('div.recps',
- self.lockIcon(),
+ opts.noLockIcon ? '' : self.lockIcon(),
!isAuthorRecp ? [
h('span', {title: 'Author is not a recipient'}, '[!]'), ' '
] : '',