Quellcode durchsuchen

Update Activity.vue component

Daniel Supernault vor 5 Jahren
Ursprung
Commit
6ef7597356
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6 1
      resources/assets/js/components/Activity.vue

+ 6 - 1
resources/assets/js/components/Activity.vue

@@ -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 => {