Skip to content
Snippets Groups Projects
Commit 7698a6fb authored by jasper's avatar jasper
Browse files

Remove posts by blocking or unfollowing

parent 4e793002
No related branches found
No related tags found
4 merge requests!673Update master with bugfixes (and other changes),!660[i18n] Update: occitan language,!648WIP: Merge develop into mastoapi-exploration,!589#330 Remove posts immediately by blocking someone
......@@ -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('&')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment