Fallback to acct webfinger on getSubjectHostFromUriAndUsernameCached

This commit is contained in:
Laura Hausmann 2023-09-11 23:20:41 +02:00
parent b04619e007
commit 02dc687705
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -203,7 +203,7 @@ export async function getSubjectHostFromUriAndUsernameCached(uri: string, userna
host: hostname
});
return user ? user.host : await uriHostCache.fetch(uri, async () => await getSubjectHostFromUri(uri) ?? hostname);
return user ? user.host : await uriHostCache.fetch(uri, async () => await getSubjectHostFromUri(uri) ?? await getSubjectHostFromAcctParts(username, hostname) ?? hostname);
}
export async function getSubjectHostFromAcct(acct: string): Promise<string | null> {