diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-22 09:46:10 -0500 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-31 22:04:23 -0500 |
commit | b729872005ad1fea03e7c96e496823c0784c75c1 (patch) | |
tree | 095b1c34757eefe5900b6c247cf97e515d582d22 /lib | |
parent | 9d8f3deef44af4d6b7508dfe557677293d2977ce (diff) | |
download | patchfoo-b729872005ad1fea03e7c96e496823c0784c75c1.tar.gz patchfoo-b729872005ad1fea03e7c96e496823c0784c75c1.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/render-msg.js | 4 |
1 files changed, 3 insertions, 1 deletions
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', |