fix lookup instance

This commit is contained in:
ThatOneCalculator 2023-04-11 10:32:51 -07:00
parent 2d03d61ac8
commit 07b9e17665
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -9,9 +9,7 @@ export async function lookupInstance() {
os.api(
"federation/show-instance",
q.startsWith("http://") || q.startsWith("https://")
? { url: q.trim() }
: { fileId: q.trim() },
q.startsWith("http://") || q.startsWith("https://") ? { host: q.replace("https://", "") } : { host: q }
)
.then((instance) => {
os.pageWindow(`/instance-info/${instance.host}`);