Merge pull request 'fix server-side domain mutes rendering/api calls' (#3544) from iamtakingiteasy/pleroma-fe:fix-serverside-domain-mutes-rendering-apicalls into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma-fe/pulls/3544
This commit is contained in:
HJ 2026-08-10 13:48:50 +00:00
commit ba9c30aaf4
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))