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([
|
const [m, i] = await Promise.all([
|
||||||
props.metaHint ?? (iAmAdmin ? misskeyApi('admin/meta') : null),
|
(withHint && props.metaHint)
|
||||||
props.instanceHint ?? misskeyApi('federation/show-instance', {
|
? props.metaHint
|
||||||
host: props.host,
|
: iAmAdmin ? misskeyApi('admin/meta') : null,
|
||||||
}),
|
(withHint && props.instanceHint)
|
||||||
|
? props.instanceHint
|
||||||
|
: misskeyApi('federation/show-instance', {
|
||||||
|
host: props.host,
|
||||||
|
}),
|
||||||
]);
|
]);
|
||||||
meta.value = m;
|
meta.value = m;
|
||||||
instance.value = i;
|
instance.value = i;
|
||||||
@@ -536,7 +540,7 @@ async function severAllFollowRelations(): Promise<void> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch();
|
fetch(true);
|
||||||
|
|
||||||
const headerActions = computed(() => [{
|
const headerActions = computed(() => [{
|
||||||
text: `https://${props.host}`,
|
text: `https://${props.host}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user