Commit f8826ef9ae27a082ecc69b9cce1c73a9cd5cdb3d
don't try to render rogue vote messages
Matt McKegg committed on 2/20/2018, 9:57:50 PMParent: fd559dbf257d9992c5048911d4e56c6de2b21442
Files changed
message/html/render/vote.js | changed |
message/html/render/vote.js | ||
---|---|---|
@@ -33,9 +33,9 @@ | ||
33 | 33 … | return api.message.html.decorate(element, { msg }) |
34 | 34 … | } |
35 | 35 … | |
36 | 36 … | function isRenderable (msg) { |
37 | - return msg.value.content.type === 'vote' ? true : undefined | |
37 … | + return (msg.value.content.type === 'vote' ? true : undefined) && msg.value.content.vote | |
38 | 38 … | } |
39 | 39 … | |
40 | 40 … | function renderContent (msg) { |
41 | 41 … | var link = msg.value.content.vote.link |
Built with git-ssb-web