git ssb

10+

Matt McKegg / patchwork



Commit 7f0e32707cd24ca1c8721a7b8a6028e13958630e

include people following you in mentions

Matt McKegg committed on 10/28/2017, 12:29:51 PM
Parent: 148b12cf2f02a4589bf31b606578d7ffd08e7028

Files changed

modules/page/html/render/mentions.jschanged
modules/page/html/render/notifications.jsdeleted
modules/page/html/render/mentions.jsView
@@ -18,14 +18,14 @@
1818 })
1919
2020 // scoped
2121 function mentionFilter (msg) {
22- if (Array.isArray(msg.value.content.mentions)) {
23- if (msg.value.content.mentions.some(mention => {
24- return mention && mention.link === id
25- })) {
26- return 'mention'
27- }
22+ if (Array.isArray(msg.value.content.mentions) && msg.value.content.mentions.some(mention => {
23+ return mention && mention.link === id
24+ })) {
25+ return 'mention'
26+ } else if (msg.value.content.type === 'contact') {
27+ return true
2828 }
2929 }
3030 })
3131 }
modules/page/html/render/notifications.jsView

Built with git-ssb-web