mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-24 00:34:25 +01:00
Fix /api/v1/accounts/lookup nip05
This commit is contained in:
@@ -36,7 +36,7 @@ const accountLookupController: AppController = async (c) => {
|
|||||||
return c.json({ error: 'Missing `acct` query parameter.' }, 422);
|
return c.json({ error: 'Missing `acct` query parameter.' }, 422);
|
||||||
}
|
}
|
||||||
|
|
||||||
const event = await lookupAccount(acct);
|
const event = await lookupAccount(decodeURIComponent(acct));
|
||||||
if (event) {
|
if (event) {
|
||||||
return c.json(await toAccount(event));
|
return c.json(await toAccount(event));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user