This commit is contained in:
mattyatea 2024-01-06 14:26:59 +09:00
parent de3f4ce29c
commit 76cc50e38a
1 changed files with 4 additions and 4 deletions

View File

@ -4,20 +4,20 @@ SPDX-License-Identifier: AGPL-3.0-only
--> -->
<template> <template>
<a :class="$style.root" @click="UserInfoUpdate" ><i class="ti ti-alert-triangle" style="margin-right: 8px;"></i>{{ i18n.ts.remoteUserInfoUpdate }}</a> <a :class="$style.root" @click="UserInfoUpdate"><i class="ti ti-alert-triangle" style="margin-right: 8px;"></i>{{ i18n.ts.remoteUserInfoUpdate }}</a>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { i18n } from '@/i18n.js'; import { i18n } from '@/i18n.js';
import { api } from '@/os.js'; import { misskeyApi } from '@/scripts/misskey-api.js';
const props = withDefaults(defineProps<{ const props = withDefaults(defineProps<{
UserId: string; UserId: string;
}>(), { }>(), {
UserId: null, UserId: null,
}); });
function UserInfoUpdate() { function UserInfoUpdate() {
api('federation/update-remote-user',{userId: props.UserId}) misskeyApi('federation/update-remote-user', { userId: props.UserId });
} }
</script> </script>