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>
</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))