Commit 0a2788627b5dbeabfff202201f4c580d228d1c0f
Skip malformed contact message
Charles Lehner committed on 7/10/2016, 11:45:34 PMParent: 6d423be7ff771840616e2c260997450ad3af7a30
Files changed
modules/follow.js | changed |
modules/follow.js | ||
---|---|---|
@@ -7,9 +7,9 @@ | ||
7 | 7 | //render a message when someone follows someone, |
8 | 8 | //so you see new users |
9 | 9 | exports.message_content = function (msg) { |
10 | 10 | |
11 | - if(msg.value.content.type == 'contact') { | |
11 | + if(msg.value.content.type == 'contact' && msg.value.content.contact) { | |
12 | 12 | return h('div.contact', |
13 | 13 | 'follows', |
14 | 14 | avatar(msg.value.content.contact) |
15 | 15 | ) |
Built with git-ssb-web