From 5be1b3cc78358abd45376b05e9d59fecb67402f8 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 30 Dec 2019 11:36:41 -0500 Subject: 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. --- lib/render.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/render.js') 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'}, '[!]'), ' ' ] : '', -- cgit v1.2.3