From b729872005ad1fea03e7c96e496823c0784c75c1 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 22 Dec 2019 09:46:10 -0500 Subject: Show message unbox key This makes it easier to copy-paste a private message id + key for sharing, or let it appear in a print view / PDF export. --- lib/render-msg.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/render-msg.js b/lib/render-msg.js index 5411974..63489ff 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -141,7 +141,9 @@ RenderMsg.prototype.wrap = function (content, cb) { h('code', h('a.ssb-id', { href: this.toUrl(this.msg.key) + (this.hasFullLink && this.opts.full ? '?full' : '') - }, this.msg.key)), + }, this.msg.key, + this.msg.value.unbox ? '?unbox=' + this.msg.value.unbox : '' + )), channel ? [' ', h('a', {href: this.toUrl(channel)}, channel)] : '')), h('td.msg-right', this.actions()) ), h('tr', -- cgit v1.2.3