Fix /api/v1/accounts/lookup nip05
This commit is contained in:
parent
a21ad4caec
commit
d109043440
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue