diff --git a/resources/assets/js/components/Activity.vue b/resources/assets/js/components/Activity.vue index 751cab0ae..6e03b1779 100644 --- a/resources/assets/js/components/Activity.vue +++ b/resources/assets/js/components/Activity.vue @@ -146,6 +146,12 @@ export default { if(n.type == 'mention' && !n.status) { return false; } + if(n.type == 'favourite' && !n.status) { + return false; + } + if(n.type == 'follow' && !n.account) { + return false; + } return true; }); let ids = res.data.map(n => n.id); @@ -168,13 +174,19 @@ export default { }).then(res => { if(res.data.length) { let data = res.data.filter(n => { - if(n.type == 'share' && !status) { + if(n.type == 'share' && !n.status) { return false; } - if(n.type == 'comment' && !status) { + if(n.type == 'comment' && !n.status) { return false; } - if(n.type == 'mention' && !status) { + if(n.type == 'mention' && !n.status) { + return false; + } + if(n.type == 'favourite' && !n.status) { + return false; + } + if(n.type == 'follow' && !n.account) { return false; } if(_.find(this.notifications, {id: n.id})) { diff --git a/resources/assets/js/components/NotificationCard.vue b/resources/assets/js/components/NotificationCard.vue index db4139cc6..3648df8d6 100644 --- a/resources/assets/js/components/NotificationCard.vue +++ b/resources/assets/js/components/NotificationCard.vue @@ -21,7 +21,7 @@
{{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} liked your
-
+
post.