mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-24 07:44:28 +01:00
Remove leading @ from params.acct
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user