mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
Fallback to acct webfinger on getSubjectHostFromUriAndUsernameCached
This commit is contained in:
parent
b04619e007
commit
02dc687705
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user