mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
fix lookup instance
This commit is contained in:
parent
c6b7973179
commit
3b251e3a46
@ -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}`);
|
||||
|
Loading…
Reference in New Issue
Block a user