disable silence for the entire user profile section
This commit is contained in:
parent
f9a45238e9
commit
0f2e8fd454
1 changed files with 17 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ import { i18n } from '@/i18n.js';
|
|||
import { $i } from '@/i.js';
|
||||
import { serverContext, assertServerContext } from '@/server-context.js';
|
||||
import { isTouchUsing } from '@/utility/touch.js';
|
||||
import { useMuteOverrides } from '@/utility/check-word-mute';
|
||||
import { deepAssign } from '@/utility/merge';
|
||||
|
||||
const XHome = defineAsyncComponent(() => import('./home.vue'));
|
||||
const XTimeline = defineAsyncComponent(() => import('./index.timeline.vue'));
|
||||
|
|
@ -65,6 +67,21 @@ const tab = ref(props.page);
|
|||
const user = ref<null | Misskey.entities.UserDetailed>(CTX_USER);
|
||||
const error = ref<any>(null);
|
||||
|
||||
const muteOverrides = useMuteOverrides();
|
||||
|
||||
watch(user, () => {
|
||||
if (user.value) {
|
||||
deepAssign(muteOverrides, {
|
||||
user: {
|
||||
[user.value.id]: {
|
||||
userSilenced: false,
|
||||
instanceSilenced: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function fetchUser(): void {
|
||||
if (props.acct == null) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue