fix server-side domain mutes rendering/api calls

This commit is contained in:
Alexander Tumin 2026-08-06 07:14:22 +03:00
commit 54b36e8f8e
3 changed files with 5 additions and 3 deletions

View file

@ -0,0 +1 @@
Fixed server-side domain mutes rendering/api calls

View file

@ -153,7 +153,6 @@
</div> </div>
</template> </template>
<template #item="{item}"> <template #item="{item}">
{{ item }}
<DomainMuteCard :domain="item" /> <DomainMuteCard :domain="item" />
</template> </template>
<template #empty> <template #empty>

View file

@ -37,8 +37,10 @@ import {
import { import {
blockUser as apiBlockUser, blockUser as apiBlockUser,
editUserNote as apiEditUserNote, editUserNote as apiEditUserNote,
muteDomain as apiMuteDomain,
muteUser as apiMuteUser, muteUser as apiMuteUser,
unblockUser as apiUnblockUser, unblockUser as apiUnblockUser,
unmuteDomain as apiUnmuteDomain,
unmuteUser as apiUnmuteUser, unmuteUser as apiUnmuteUser,
fetchBlocks, fetchBlocks,
fetchDomainMutes, fetchDomainMutes,
@ -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))