mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Remove leading @ from params.acct
This commit is contained in:
parent
6657a48a07
commit
66cfba5535
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue