From b37bb426a24a505f97d4338273f1e29ccfbe5db7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 8 Jul 2021 22:20:28 -0600 Subject: [PATCH] Update NotificationCard, fix typo in mention, share and comments. Fixes #2848 --- resources/assets/js/components/NotificationCard.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/assets/js/components/NotificationCard.vue b/resources/assets/js/components/NotificationCard.vue index a71af0ee..a52bde62 100644 --- a/resources/assets/js/components/NotificationCard.vue +++ b/resources/assets/js/components/NotificationCard.vue @@ -131,13 +131,13 @@ axios.get('/api/pixelfed/v1/notifications?pg=true') .then(res => { 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; } return true; @@ -162,13 +162,13 @@ }).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(_.find(this.notifications, {id: n.id})) {