git ssb

7+

dinoworm 🐛 / patchcore



Commit f8826ef9ae27a082ecc69b9cce1c73a9cd5cdb3d

don't try to render rogue vote messages

Matt McKegg committed on 2/20/2018, 9:57:50 PM
Parent: fd559dbf257d9992c5048911d4e56c6de2b21442

Files changed

message/html/render/vote.jschanged
message/html/render/vote.jsView
@@ -33,9 +33,9 @@
3333 return api.message.html.decorate(element, { msg })
3434 }
3535
3636 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
3838 }
3939
4040 function renderContent (msg) {
4141 var link = msg.value.content.vote.link

Built with git-ssb-web