mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 05:17:39 -07:00
fix(client): 非モデレーターがインスタンス情報ページを表示できない問題を修正
This commit is contained in:
parent
4f0fb30fd2
commit
de950c7a24
1 changed files with 5 additions and 10 deletions
|
@ -134,17 +134,12 @@ let suspended = $ref(false);
|
||||||
let isBlocked = $ref(false);
|
let isBlocked = $ref(false);
|
||||||
|
|
||||||
async function fetch() {
|
async function fetch() {
|
||||||
if (iAmModerator) {
|
|
||||||
// suspended and blocked information is only displayed to moderators.
|
|
||||||
// otherwise the API will error anyway
|
|
||||||
|
|
||||||
instance = await os.api('federation/show-instance', {
|
instance = await os.api('federation/show-instance', {
|
||||||
host: props.host,
|
host: props.host,
|
||||||
});
|
});
|
||||||
suspended = instance.isSuspended;
|
suspended = instance.isSuspended;
|
||||||
isBlocked = instance.isBlocked;
|
isBlocked = instance.isBlocked;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
async function toggleBlock(ev) {
|
async function toggleBlock(ev) {
|
||||||
if (meta == null) return;
|
if (meta == null) return;
|
||||||
|
|
Loading…
Reference in a new issue