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>
</template>
<template #item="{item}">
{{ item }}
<DomainMuteCard :domain="item" />
</template>
<template #empty>

View file

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