diff --git a/resources/assets/js/components/NotificationCard.vue b/resources/assets/js/components/NotificationCard.vue index 542296f09..66ad1368d 100644 --- a/resources/assets/js/components/NotificationCard.vue +++ b/resources/assets/js/components/NotificationCard.vue @@ -11,7 +11,7 @@

-

{{followRequests.count}} Follow Requests

+

{{ followRequests && followRequests.hasOwnProperty('count') ? followRequests.count : 0 }} Follow Requests

@@ -82,6 +82,25 @@ {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} sent a dm.

+ +
+

+ Your application to join the {{truncate(n.group.name)}} group was approved! +

+
+ +
+

+ Your application to join {{truncate(n.group.name)}} was rejected. +

+
+ +
+

+ {{n.account.local == false ? '@':''}}{{truncate(n.account.username)}} invited you to join {{n.group.name}}. +

+
+

We cannot display this notification at this time. @@ -146,7 +165,7 @@ methods: { fetchNotifications() { - axios.get('/api/pixelfed/v1/notifications?pg=true') + axios.get('/api/v1/notifications?pg=true') .then(res => { let data = res.data.filter(n => { if(n.type == 'share' && !n.status) {