mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Remove the console.log from accountLookupController
This commit is contained in:
parent
4e80fdcc7d
commit
816f3c806d
1 changed files with 3 additions and 4 deletions
|
|
@ -99,10 +99,9 @@ const accountLookupController: AppController = async (c) => {
|
|||
return c.json(await renderAccount(event));
|
||||
}
|
||||
try {
|
||||
const pubkey = bech32ToPubkey(decodeURIComponent(acct)) as string;
|
||||
return c.json(await accountFromPubkey(pubkey));
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
const pubkey = bech32ToPubkey(decodeURIComponent(acct));
|
||||
return c.json(await accountFromPubkey(pubkey!));
|
||||
} catch {
|
||||
return c.json({ error: 'Could not find user.' }, 404);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue