mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
[mastodon-client] Allow unauthorized uses to access /accounts/:id/statuses
This commit is contained in:
parent
f6d0183668
commit
f8be4533df
@ -145,12 +145,7 @@ export function apiAccountMastodon(router: Router): void {
|
||||
async (ctx) => {
|
||||
try {
|
||||
const auth = await authenticate(ctx.headers.authorization, null);
|
||||
const user = auth[0] ?? undefined;
|
||||
|
||||
if (!user) {
|
||||
ctx.status = 401;
|
||||
return;
|
||||
}
|
||||
const user = auth[0] ?? null;
|
||||
|
||||
const userId = convertId(ctx.params.id, IdType.IceshrimpId);
|
||||
const cache = UserHelpers.getFreshAccountCache();
|
||||
|
Loading…
Reference in New Issue
Block a user