fix domain unmuting
This commit is contained in:
parent
ab2a011183
commit
4c8b5fe68b
3 changed files with 6 additions and 2 deletions
1
changelog.d/fix-domain-mute.fix
Normal file
1
changelog.d/fix-domain-mute.fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
domain mute fixedw
|
||||
1
changelog.d/moderation-tools.fix
Normal file
1
changelog.d/moderation-tools.fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
fix moderation tools button possibly not appearing for admins
|
||||
|
|
@ -40,6 +40,8 @@ import {
|
|||
muteUser as apiMuteUser,
|
||||
unblockUser as apiUnblockUser,
|
||||
unmuteUser as apiUnmuteUser,
|
||||
muteDomain as apiMuteDomain,
|
||||
unmuteDomain as apiUnmuteDomain,
|
||||
fetchBlocks,
|
||||
fetchDomainMutes,
|
||||
fetchMutes,
|
||||
|
|
@ -170,14 +172,14 @@ const showReblogs = (store, userId) => {
|
|||
}
|
||||
|
||||
const muteDomain = (store, domain) => {
|
||||
return muteDomain({
|
||||
return apiMuteDomain({
|
||||
domain,
|
||||
credentials: useOAuthStore().token,
|
||||
}).then(() => store.commit('addDomainMute', domain))
|
||||
}
|
||||
|
||||
const unmuteDomain = (store, domain) => {
|
||||
return unmuteDomain({
|
||||
return apiUnmuteDomain({
|
||||
domain,
|
||||
credentials: useOAuthStore().token,
|
||||
}).then(() => store.commit('removeDomainMute', domain))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue