diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js index 54516e1..c70fcac 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -752,7 +752,8 @@ Serve.prototype.id = function (id, ext) { if (self.query.raw != null) return self.rawId(id) this.app.getMsgDecrypted(id, function (err, rootMsg) { - if (err && err.name === 'NotFoundError') err = null, rootMsg = {key: id} + if (err && err.name === 'NotFoundError') err = null, rootMsg = { + key: id, value: {content: false}} if (err) return self.respond(500, err.stack || err) var rootContent = rootMsg && rootMsg.value && rootMsg.value.content var recps = rootContent && rootContent.recps |