Remove leading @ from params.acct

This commit is contained in:
Alex Gleason
2024-08-10 09:58:25 -05:00
parent 6657a48a07
commit 66cfba5535

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);