mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 01:50:45 +01:00
fix calculation of instance-info.isSuspended
when instance
is null
This commit is contained in:
parent
148bf98f21
commit
b27b398717
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ async function fetch(): Promise<void> {
|
|||
host: props.host,
|
||||
});
|
||||
suspensionState.value = instance.value?.suspensionState ?? 'none';
|
||||
isSuspended.value = instance.value?.suspensionState !== 'none';
|
||||
isSuspended.value = suspensionState.value !== 'none';
|
||||
isBlocked.value = instance.value?.isBlocked ?? false;
|
||||
isSilenced.value = instance.value?.isSilenced ?? false;
|
||||
isNSFW.value = instance.value?.isNSFW ?? false;
|
||||
|
|
Loading…
Reference in a new issue