From 3d2cdb0fcc0b1604888ad0943e118b928370570a Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Mon, 7 Aug 2023 16:20:35 +0200 Subject: [PATCH] fix: Account lookup fails with 404 --- src/sources.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sources.ts b/src/sources.ts index c65a6fe..132d3a4 100644 --- a/src/sources.ts +++ b/src/sources.ts @@ -124,7 +124,7 @@ async function getLocalUser(user: string, domain: string): Promise { if (!Object.hasOwnProperty.call(accountCache, key)) { try { - accountCache[key] = (await fetchJson(domain, "v1/accounts/lookup", { acct: user })) as MastodonAccount + accountCache[key] = (await fetchJson(domain, "api/v1/accounts/lookup", { acct: user })) as MastodonAccount } catch (e) { if ((e as any).status === 404) accountCache[key] = null;