mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
Return null on WebFinger 404
This commit is contained in:
parent
cb85b4a1de
commit
34499bfecb
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue