Commit fa25bf8726402e36587f74731ea2243dbcff3c89
fix including attending gatherings in mentions
fixes #663Matt McKegg committed on 2/12/2018, 4:02:29 AM
Parent: fb49ce16f112e37291b22b0b80e356c5a9c8e7e3
Files changed
modules/page/html/render/mentions.js | changed |
modules/page/html/render/mentions.js | ||
---|---|---|
@@ -19,16 +19,18 @@ | ||
19 | 19 | }) |
20 | 20 | |
21 | 21 | // scoped |
22 | 22 | function mentionFilter (msg) { |
23 | - if (Array.isArray(msg.value.content.mentions) && msg.value.content.mentions.some(mention => { | |
24 | - return mention && mention.link === id | |
25 | - })) { | |
26 | - return 'mention' | |
27 | - } else if (msg.value.content.type === 'contact') { | |
28 | - return true | |
29 | - } else if (msg.value.content.type === 'about') { | |
30 | - return true | |
23 | + if (msg.value.author !== id) { | |
24 | + if (Array.isArray(msg.value.content.mentions) && msg.value.content.mentions.some(mention => { | |
25 | + return mention && mention.link === id | |
26 | + })) { | |
27 | + return 'mention' | |
28 | + } else if (msg.value.content.type === 'contact') { | |
29 | + return true | |
30 | + } else if (msg.value.content.type === 'about') { | |
31 | + return true | |
32 | + } | |
31 | 33 | } |
32 | 34 | } |
33 | 35 | }) |
34 | 36 | } |
Built with git-ssb-web