1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 08:44:02 +00:00

Update components, fix api endpoints. Fixes #3138

This commit is contained in:
Daniel Supernault 2022-01-09 18:18:25 -07:00
parent f4150df593
commit e724633e0f
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -591,7 +591,7 @@
methods: { methods: {
fetchProfile() { fetchProfile() {
axios.get('/api/v1/accounts/verify_credentials').then(res => { axios.get('/api/pixelfed/v1/accounts/verify_credentials').then(res => {
this.profile = res.data; this.profile = res.data;
if(this.profile.is_admin == true) { if(this.profile.is_admin == true) {
this.modes.mod = true; this.modes.mod = true;