git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit 0a2788627b5dbeabfff202201f4c580d228d1c0f

Skip malformed contact message

Charles Lehner committed on 7/10/2016, 11:45:34 PM
Parent: 6d423be7ff771840616e2c260997450ad3af7a30

Files changed

modules/follow.jschanged
modules/follow.jsView
@@ -7,9 +7,9 @@
77 //render a message when someone follows someone,
88 //so you see new users
99 exports.message_content = function (msg) {
1010
11- if(msg.value.content.type == 'contact') {
11+ if(msg.value.content.type == 'contact' && msg.value.content.contact) {
1212 return h('div.contact',
1313 'follows',
1414 avatar(msg.value.content.contact)
1515 )

Built with git-ssb-web