aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2020-01-15 10:39:16 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2020-01-15 10:39:33 -0500
commitb89cb9e2e4c5564ad3803cee6f962ec8e65e8018 (patch)
treea88ed67c51fb27f87c37141742f74481c7a804e1 /lib
parent306f74635bc6ba71bf7788c55dceffad7cc6cb27 (diff)
downloadpatchfoo-b89cb9e2e4c5564ad3803cee6f962ec8e65e8018.tar.gz
patchfoo-b89cb9e2e4c5564ad3803cee6f962ec8e65e8018.zip
print view: don't show relative time
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js2
-rw-r--r--lib/serve.js1
2 files changed, 2 insertions, 1 deletions
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