mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Fallback to acct webfinger on getSubjectHostFromUriAndUsernameCached
This commit is contained in:
parent
b04619e007
commit
02dc687705
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ export async function getSubjectHostFromUriAndUsernameCached(uri: string, userna
|
||||||
host: hostname
|
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> {
|
export async function getSubjectHostFromAcct(acct: string): Promise<string | null> {
|
||||||
|
|
Loading…
Reference in a new issue