浏览代码

Update Activity.vue component

Daniel Supernault 5 年之前
父节点
当前提交
6ef7597356
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      resources/assets/js/components/Activity.vue

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

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