mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-27 10:14:39 +01:00
getAndRenderAccount: render account from pubkey if not found
This commit is contained in:
@@ -73,9 +73,9 @@ const accountController: AppController = async (c) => {
|
||||
const event = await getAuthor(pubkey);
|
||||
if (event) {
|
||||
return c.json(await renderAccount(event));
|
||||
} else {
|
||||
return c.json(await accountFromPubkey(pubkey));
|
||||
}
|
||||
|
||||
return c.json({ error: 'Could not find user.' }, 404);
|
||||
};
|
||||
|
||||
const accountLookupController: AppController = async (c) => {
|
||||
|
||||
Reference in New Issue
Block a user