aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-08-22 17:52:51 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-08-22 19:10:39 -0700
commit24765da30eaa84bc6084932ad4b80e8fa73b7521 (patch)
tree85d7b2ec81b90ddae798c123b2c3c4e75d831b82 /lib/render.js
parent261ac3486383d31a1622bcdcbc2001eb5d790f88 (diff)
downloadpatchfoo-24765da30eaa84bc6084932ad4b80e8fa73b7521.tar.gz
patchfoo-24765da30eaa84bc6084932ad4b80e8fa73b7521.zip
Use Post/Redirect/Get for all message publishing
Fix %1/jp2WMT0l7l+u6yvn1axK5WqkfoQlSuuZkvWlvVEyE=.sha256
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/render.js b/lib/render.js
index ec62b31..e246923 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -355,11 +355,11 @@ Render.prototype.privateLine = function (recps, isAuthorRecp, cb) {
return el
}
-Render.prototype.msgLink = function (msg, cb) {
+Render.prototype.msgIdLink = function (id, cb) {
var self = this
var el = h('span')
- var a = h('a', {href: self.toUrl(msg.key)}, msg.key)
- self.app.unboxMsg(msg, function (err, msg) {
+ var a = h('a', {href: self.toUrl(id)}, id)
+ self.app.getMsgDecrypted(id, function (err, msg) {
if (err) return el.appendChild(u.renderError(err)), cb()
var renderMsg = new RenderMsg(self, self.app, msg, {wrap: false})
renderMsg.title(function (err, title) {