From 7698a6fb0dad962a15855adc2a9c4134abe13de7 Mon Sep 17 00:00:00 2001 From: jasper Date: Tue, 26 Feb 2019 23:21:04 -0800 Subject: [PATCH] Remove posts by blocking or unfollowing --- src/components/user_card_content/user_card_content.js | 6 +----- src/services/api/api.service.js | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js index d2a97a84..35139504 100644 --- a/src/components/user_card_content/user_card_content.js +++ b/src/components/user_card_content/user_card_content.js @@ -105,7 +105,6 @@ export default { this.followRequestInProgress = true requestUnfollow(this.user, store).then(() => { this.followRequestInProgress = false - store.commit('removeStatus', { timeline: 'friends', userId: this.user.id }) }) }, @@ -114,7 +113,6 @@ export default { store.state.api.backendInteractor.blockUser(this.user.id) .then((blockedUser) => { store.commit('addNewUsers', [blockedUser]) - store.commit('removeStatus', { timeline: 'friends', userId: this.user.id }) store.commit('removeStatus', { timeline: 'public', userId: this.user.id }) store.commit('removeStatus', { timeline: 'publicAndExternal', userId: this.user.id }) @@ -123,9 +121,7 @@ export default { unblockUser () { const store = this.$store store.state.api.backendInteractor.unblockUser(this.user.id) - .then((unblockedUser) => { - store.commit('addNewUsers', [unblockedUser]) - }) + .then((unblockedUser) => store.commit('addNewUsers', [unblockedUser])) }, toggleMute () { const store = this.$store diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index c5fdcb72..92daa04e 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -362,6 +362,7 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use if (timeline === 'media') { params.push(['only_media', 1]) } + params.push(['count', 20]) const queryString = map(params, (param) => `${param[0]}=${param[1]}`).join('&')