fix domain unmuting

This commit is contained in:
Henry Jameson 2026-08-04 17:32:02 +03:00
commit 4c8b5fe68b
3 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1 @@
domain mute fixedw

View file

@ -0,0 +1 @@
fix moderation tools button possibly not appearing for admins

View file

@ -40,6 +40,8 @@ import {
muteUser as apiMuteUser, muteUser as apiMuteUser,
unblockUser as apiUnblockUser, unblockUser as apiUnblockUser,
unmuteUser as apiUnmuteUser, unmuteUser as apiUnmuteUser,
muteDomain as apiMuteDomain,
unmuteDomain as apiUnmuteDomain,
fetchBlocks, fetchBlocks,
fetchDomainMutes, fetchDomainMutes,
fetchMutes, fetchMutes,
@ -170,14 +172,14 @@ const showReblogs = (store, userId) => {
} }
const muteDomain = (store, domain) => { const muteDomain = (store, domain) => {
return muteDomain({ return apiMuteDomain({
domain, domain,
credentials: useOAuthStore().token, credentials: useOAuthStore().token,
}).then(() => store.commit('addDomainMute', domain)) }).then(() => store.commit('addDomainMute', domain))
} }
const unmuteDomain = (store, domain) => { const unmuteDomain = (store, domain) => {
return unmuteDomain({ return apiUnmuteDomain({
domain, domain,
credentials: useOAuthStore().token, credentials: useOAuthStore().token,
}).then(() => store.commit('removeDomainMute', domain)) }).then(() => store.commit('removeDomainMute', domain))