[mastodon-client] return 404 instead of 401 on NO_SUCH_NOTE
This commit is contained in:
parent
28992db8e4
commit
ec06d62d61
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ export function apiStatusMastodon(router: Router): void {
|
||||||
ctx.body = convertStatus(data.data);
|
ctx.body = convertStatus(data.data);
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
ctx.status = 401;
|
ctx.status = ctx.status == 404 ? 404 : 401;
|
||||||
ctx.body = e.response.data;
|
ctx.body = e.response.data;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue