mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
[mastodon-client] return 404 instead of 401 on NO_SUCH_NOTE
This commit is contained in:
parent
02bc972b2a
commit
3a9e917e2e
@ -105,7 +105,7 @@ export function apiStatusMastodon(router: Router): void {
|
||||
ctx.body = convertStatus(data.data);
|
||||
} catch (e: any) {
|
||||
console.error(e);
|
||||
ctx.status = 401;
|
||||
ctx.status = ctx.status == 404 ? 404 : 401;
|
||||
ctx.body = e.response.data;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user