mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
getAndRenderAccount: render account from pubkey if not found
This commit is contained in:
parent
fe6dd01b68
commit
be3f1104db
1 changed files with 2 additions and 2 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue