mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +00:00
add withHint to instance-info.vue
This commit is contained in:
@@ -368,12 +368,16 @@ async function saveModerationNote() {
|
||||
}
|
||||
}
|
||||
|
||||
async function fetch(): Promise<void> {
|
||||
async function fetch(withHint = false): Promise<void> {
|
||||
const [m, i] = await Promise.all([
|
||||
props.metaHint ?? (iAmAdmin ? misskeyApi('admin/meta') : null),
|
||||
props.instanceHint ?? misskeyApi('federation/show-instance', {
|
||||
host: props.host,
|
||||
}),
|
||||
(withHint && props.metaHint)
|
||||
? props.metaHint
|
||||
: iAmAdmin ? misskeyApi('admin/meta') : null,
|
||||
(withHint && props.instanceHint)
|
||||
? props.instanceHint
|
||||
: misskeyApi('federation/show-instance', {
|
||||
host: props.host,
|
||||
}),
|
||||
]);
|
||||
meta.value = m;
|
||||
instance.value = i;
|
||||
@@ -536,7 +540,7 @@ async function severAllFollowRelations(): Promise<void> {
|
||||
});
|
||||
}
|
||||
|
||||
fetch();
|
||||
fetch(true);
|
||||
|
||||
const headerActions = computed(() => [{
|
||||
text: `https://${props.host}`,
|
||||
|
||||
Reference in New Issue
Block a user