From e724633e0f176494fb560450e71b5d17258a3047 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Jan 2022 18:18:25 -0700 Subject: [PATCH] Update components, fix api endpoints. Fixes #3138 --- resources/assets/js/components/NotificationCard.vue | 2 +- resources/assets/js/components/Timeline.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/NotificationCard.vue b/resources/assets/js/components/NotificationCard.vue index 66ad1368d..2c9a0a5c0 100644 --- a/resources/assets/js/components/NotificationCard.vue +++ b/resources/assets/js/components/NotificationCard.vue @@ -165,7 +165,7 @@ methods: { fetchNotifications() { - axios.get('/api/v1/notifications?pg=true') + axios.get('/api/pixelfed/v1/notifications?pg=true') .then(res => { let data = res.data.filter(n => { if(n.type == 'share' && !n.status) { diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 7dc2b2a86..4e2e88852 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -591,7 +591,7 @@ methods: { fetchProfile() { - axios.get('/api/v1/accounts/verify_credentials').then(res => { + axios.get('/api/pixelfed/v1/accounts/verify_credentials').then(res => { this.profile = res.data; if(this.profile.is_admin == true) { this.modes.mod = true;