Update vue components, namespace v1 api

This commit is contained in:
Daniel Supernault 2019-09-15 18:06:04 -06:00
parent a791219d20
commit 3c306c5e17
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
9 changed files with 38 additions and 102 deletions

View file

@ -81,7 +81,7 @@
methods: {
fetchNotifications() {
axios.get('/api/v1/notifications')
axios.get('/api/pixelfed/v1/notifications')
.then(res => {
let data = res.data.filter(n => {
if(n.type == 'share' && !status) {
@ -103,7 +103,7 @@
$state.complete();
return;
}
axios.get('/api/v1/notifications', {
axios.get('/api/pixelfed/v1/notifications', {
params: {
page: this.notificationCursor
}
@ -171,7 +171,7 @@
let interval = this.notifications.length > 5 ? 15000 : 120000;
let self = this;
setInterval(function() {
axios.get('/api/v1/notifications')
axios.get('/api/pixelfed/v1/notifications')
.then(res => {
let data = res.data.filter(n => {
if(n.type == 'share' || self.notificationMaxId >= n.id) {