From b89cb9e2e4c5564ad3803cee6f962ec8e65e8018 Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 15 Jan 2020 10:39:16 -0500 Subject: print view: don't show relative time --- lib/render-msg.js | 2 +- lib/serve.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/render-msg.js b/lib/render-msg.js index dfface0..cc85190 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -135,7 +135,7 @@ RenderMsg.prototype.wrap = function (content, cb) { ), h('td.msg-main', h('div.msg-header', - date ? [h('a.ssb-timestamp', { + date && !this.serve.noMsgTime ? [h('a.ssb-timestamp', { title: date.toLocaleString(), href: this.msg.key ? this.toUrl(this.msg.key) : undefined }, htime(date)), ' '] : '', diff --git a/lib/serve.js b/lib/serve.js index afe494e..f7c2491 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -400,6 +400,7 @@ Serve.prototype.handle = function () { this.noComposer = true this.noActions = true this.noAvatar = true + this.noMsgTime = true } if (this.query.noThread != null) { this.noThread = true -- cgit v1.2.3