Improve tagging and toki pona support

This commit is contained in:
Bad Manners 2024-03-22 18:37:22 -03:00
parent d4a9dc9dbc
commit 18e98cdb3b
89 changed files with 971 additions and 956 deletions

View file

@ -92,6 +92,12 @@ function getUsernameForWebsite(user: CollectionEntry<"users">, website: Website)
return bskyMatch[1];
}
break;
case "itaku":
const itakuMatch = link.match(/^.*\bitaku\.ee\/profile\/([^\/]+)\/?$/);
if (itakuMatch && itakuMatch[1]) {
return itakuMatch[1];
}
break;
default:
throw new Error(`Unhandled website "${website}" in getUsernameForWebsite`);
}