Remove posts by blocking or unfollowing
This commit is contained in:
parent
4e79300232
commit
7698a6fb0d
|
@ -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
|
||||
|
|
|
@ -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('&')
|
||||
|
|
Loading…
Reference in New Issue