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:
commit
ba9c30aaf4
3 changed files with 5 additions and 3 deletions
1
changelog.d/server-mute-render-modify.fix
Normal file
1
changelog.d/server-mute-render-modify.fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fixed server-side domain mutes rendering/api calls
|
||||
|
|
@ -153,7 +153,6 @@
|
|||
</div>
|
||||
</template>
|
||||
<template #item="{item}">
|
||||
{{ item }}
|
||||
<DomainMuteCard :domain="item" />
|
||||
</template>
|
||||
<template #empty>
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue