From 3cb676b18b15f9701ae9f681aa52d4c6417d616f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 24 Mar 2020 21:22:07 -0600 Subject: [PATCH] Update NotificationCard.vue, fix share notifications --- resources/assets/js/components/NotificationCard.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/assets/js/components/NotificationCard.vue b/resources/assets/js/components/NotificationCard.vue index 1128178b..f2ed5266 100644 --- a/resources/assets/js/components/NotificationCard.vue +++ b/resources/assets/js/components/NotificationCard.vue @@ -40,7 +40,7 @@

- {{truncate(n.account.username)}} shared your post. + {{truncate(n.account.username)}} shared your post.

@@ -90,12 +90,7 @@ fetchNotifications() { axios.get('/api/pixelfed/v1/notifications') .then(res => { - let data = res.data.filter(n => { - if(n.type == 'share' && !status) { - return false; - } - return true; - }); + let data = res.data; let ids = res.data.map(n => n.id); this.notificationMaxId = Math.min(...ids); this.notifications = data;