Remove posts by blocking or unfollowing

This commit is contained in:
jasper 2019-02-26 23:21:04 -08:00
parent 4e79300232
commit 7698a6fb0d
2 changed files with 2 additions and 5 deletions

View file

@ -105,7 +105,6 @@ export default {
this.followRequestInProgress = true this.followRequestInProgress = true
requestUnfollow(this.user, store).then(() => { requestUnfollow(this.user, store).then(() => {
this.followRequestInProgress = false this.followRequestInProgress = false
store.commit('removeStatus', { timeline: 'friends', userId: this.user.id }) store.commit('removeStatus', { timeline: 'friends', userId: this.user.id })
}) })
}, },
@ -114,7 +113,6 @@ export default {
store.state.api.backendInteractor.blockUser(this.user.id) store.state.api.backendInteractor.blockUser(this.user.id)
.then((blockedUser) => { .then((blockedUser) => {
store.commit('addNewUsers', [blockedUser]) store.commit('addNewUsers', [blockedUser])
store.commit('removeStatus', { timeline: 'friends', userId: this.user.id }) store.commit('removeStatus', { timeline: 'friends', userId: this.user.id })
store.commit('removeStatus', { timeline: 'public', userId: this.user.id }) store.commit('removeStatus', { timeline: 'public', userId: this.user.id })
store.commit('removeStatus', { timeline: 'publicAndExternal', userId: this.user.id }) store.commit('removeStatus', { timeline: 'publicAndExternal', userId: this.user.id })
@ -123,9 +121,7 @@ export default {
unblockUser () { unblockUser () {
const store = this.$store const store = this.$store
store.state.api.backendInteractor.unblockUser(this.user.id) store.state.api.backendInteractor.unblockUser(this.user.id)
.then((unblockedUser) => { .then((unblockedUser) => store.commit('addNewUsers', [unblockedUser]))
store.commit('addNewUsers', [unblockedUser])
})
}, },
toggleMute () { toggleMute () {
const store = this.$store const store = this.$store

View file

@ -362,6 +362,7 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use
if (timeline === 'media') { if (timeline === 'media') {
params.push(['only_media', 1]) params.push(['only_media', 1])
} }
params.push(['count', 20]) params.push(['count', 20])
const queryString = map(params, (param) => `${param[0]}=${param[1]}`).join('&') const queryString = map(params, (param) => `${param[0]}=${param[1]}`).join('&')