mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Return null on WebFinger 404
This commit is contained in:
parent
cb85b4a1de
commit
34499bfecb
|
|
@ -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: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue