Update Activity.vue component

This commit is contained in:
Daniel Supernault 2019-09-30 21:51:40 -06:00
parent f4039ce218
commit 6ef7597356
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -115,7 +115,11 @@ export default {
methods: { methods: {
fetchNotifications() { fetchNotifications() {
axios.get('/api/pixelfed/v1/notifications') axios.get('/api/pixelfed/v1/notifications', {
params: {
pg: true
}
})
.then(res => { .then(res => {
let data = res.data.filter(n => { let data = res.data.filter(n => {
if(n.type == 'share' && !status) { if(n.type == 'share' && !status) {
@ -138,6 +142,7 @@ export default {
} }
axios.get('/api/pixelfed/v1/notifications', { axios.get('/api/pixelfed/v1/notifications', {
params: { params: {
pg: true,
page: this.notificationCursor page: this.notificationCursor
} }
}).then(res => { }).then(res => {