git ssb

10+

Matt McKegg / patchwork



Commit fa25bf8726402e36587f74731ea2243dbcff3c89

fix including attending gatherings in mentions

fixes #663
Matt McKegg committed on 2/12/2018, 4:02:29 AM
Parent: fb49ce16f112e37291b22b0b80e356c5a9c8e7e3

Files changed

modules/page/html/render/mentions.jschanged
modules/page/html/render/mentions.jsView
@@ -19,16 +19,18 @@
1919 })
2020
2121 // scoped
2222 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+ }
3133 }
3234 }
3335 })
3436 }

Built with git-ssb-web