accountLookupController: support !no-unauthenticated

This commit is contained in:
Alex Gleason 2024-11-25 22:44:14 -06:00
parent 1dc19ef422
commit 4ed66b8fe5
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -98,6 +98,7 @@ const accountLookupController: AppController = async (c) => {
const event = await lookupAccount(decodeURIComponent(acct)); const event = await lookupAccount(decodeURIComponent(acct));
if (event) { if (event) {
assertAuthenticated(c, event);
return c.json(await renderAccount(event)); return c.json(await renderAccount(event));
} }
try { try {