mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
yet another typo fix
This commit is contained in:
parent
4f8ebb95f3
commit
af70065d84
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ async function buildTemplateOpts(params: PathParams, url: string): Promise<OpenG
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
if (params.acct && !params.statusId) {
|
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 profile = await fetchProfile({ [key]: params.acct });
|
||||||
const handle = await getHandle(params.acct, profile);
|
const handle = await getHandle(params.acct, profile);
|
||||||
res.type = 'profile';
|
res.type = 'profile';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue