aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-30 13:37:41 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-30 13:40:23 -1000
commit7c81f371ef9f5ddec5484efbab9fe86150b3ad8a (patch)
tree9a264333a49db4b47dc7f4f776d0a91ac3fe7f9e
parentc128fb17b25cb8adb9cb9e6c91cdc8e952e342a5 (diff)
downloadpatchfoo-7c81f371ef9f5ddec5484efbab9fe86150b3ad8a.tar.gz
patchfoo-7c81f371ef9f5ddec5484efbab9fe86150b3ad8a.zip
fix crash
-rw-r--r--lib/render.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js
index 83c6d10..21cdbda 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -88,7 +88,7 @@ function Render(app, opts) {
Render.prototype.emoji = function (emoji) {
var name = ':' + emoji + ':'
- var link = this._mentions[name]
+ var link = this._mentions && this._mentions[name]
if (link && link.link) {
this.app.reverseEmojiNameCache.set(emoji, link.link)
return h('img.ssb-emoji', {