mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
verify_credentials: try calling the database directly
This commit is contained in:
parent
f4c02f1568
commit
7007d7e81b
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ const createAccountController: AppController = async (c) => {
|
|||
const verifyCredentialsController: AppController = async (c) => {
|
||||
const pubkey = c.get('pubkey')!;
|
||||
|
||||
const event = await getAuthor(pubkey, { relations: ['author_stats'] });
|
||||
const [event] = await Storages.db.query([{ kinds: [0], authors: [pubkey], limit: 1 }]);
|
||||
if (event) {
|
||||
return c.json(await renderAccount(event, { withSource: true }));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue