diff --git a/packages/client/src/pages/instance-info.vue b/packages/client/src/pages/instance-info.vue index 55e7627d8..0f794efb2 100644 --- a/packages/client/src/pages/instance-info.vue +++ b/packages/client/src/pages/instance-info.vue @@ -47,7 +47,11 @@ {{ i18n.ts.blockThisInstanceDescription }} + Refresh metadata + + {{ i18n.t('removeAllFollowingDescription', { host: instance.host }) }} + {{ i18n.ts.removeAllFollowing }} @@ -148,6 +152,7 @@ import { definePageMetadata } from '@/scripts/page-metadata'; import { i18n } from '@/i18n'; import MkUserCardMini from '@/components/user-card-mini.vue'; import MkPagination from '@/components/ui/pagination.vue'; +import MkInfo from '@/components/ui/info.vue'; const props = defineProps<{ host: string; @@ -202,6 +207,12 @@ function refreshMetadata(): void { }); } +async function removeAllFollowing() { + await os.apiWithDialog('admin/federation/remove-all-following', { + host: instance.host, + }); +} + fetch(); const headerActions = $computed(() => [{