Remove leading @ from params.acct

This commit is contained in:
Alex Gleason 2024-08-10 09:58:25 -05:00
parent 6657a48a07
commit 66cfba5535
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -61,7 +61,7 @@ async function getEntities(params: { acct?: string; statusId?: string }): Promis
}
if (params.acct) {
const pubkey = await lookupPubkey(params.acct);
const pubkey = await lookupPubkey(params.acct.replace(/^@/, ''));
const event = pubkey ? await getAuthor(pubkey) : undefined;
if (event) {
entities.account = await renderAccount(event);