mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-15 03:14:30 +01:00
yet another typo fix
This commit is contained in:
@@ -39,7 +39,8 @@ async function buildTemplateOpts(params: PathParams, url: string): Promise<OpenG
|
||||
};
|
||||
try {
|
||||
if (params.acct && !params.statusId) {
|
||||
const key = /[a-f0-9]/.test(params.acct) ? 'pubkey' : 'handle';
|
||||
const key = /^[a-f0-9]{64}$/.test(params.acct) ? 'pubkey' : 'handle';
|
||||
console.log(key);
|
||||
const profile = await fetchProfile({ [key]: params.acct });
|
||||
const handle = await getHandle(params.acct, profile);
|
||||
res.type = 'profile';
|
||||
|
||||
Reference in New Issue
Block a user