Commit 73e8e7c2989716a8cf20a25791ecaa4e293691b1
Fix render crash in user-feed
Anders Rune Jensen committed on 1/10/2018, 10:45:26 PMParent: b6ee22a69b019b21e0652f96fa87c75a452d6a4f
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -57,9 +57,9 @@ | ||
57 | 57 … | }; |
58 | 58 … | |
59 | 59 … | function renderEmoji(emoji) { |
60 | 60 … | var opts = this.renderer.opts; |
61 | - var url = opts.mentions[emoji] | |
61 … | + var url = opts.mentions && opts.mentions[emoji] | |
62 | 62 … | ? opts.blob_base + encodeURIComponent(opts.mentions[emoji]) |
63 | 63 … | : emoji in emojis && opts.emoji_base + escape(emoji) + '.png'; |
64 | 64 … | return url |
65 | 65 … | ? h('img.ssb-emoji', |
Built with git-ssb-web