Return null on WebFinger 404

This commit is contained in:
Jesse Wierzbinski 2024-04-09 20:27:16 -10:00
parent cb85b4a1de
commit 34499bfecb
No known key found for this signature in database

View file

@ -256,6 +256,10 @@ export const resolveWebFinger = async (identifier: string, host: string) => {
}, },
); );
if (response.status === 404) {
return null;
}
const data = (await response.json()) as { const data = (await response.json()) as {
subject: string; subject: string;
links: { links: {