feat: allow search .bsky.social account

This commit is contained in:
Lhc_fl 2024-10-18 08:37:12 +08:00 committed by fly_mc
parent f124666e58
commit 733b741b00

View file

@ -91,7 +91,12 @@ async function search() {
text: i18n.ts.lookupConfirm,
});
if (!confirm.canceled) {
router.push(`/${query}`);
if (query.endsWith('.bsky.social')) {
// convert to bsky bridge
router.push(`/${query}@bsky.brid.gy`);
} else {
router.push(`/${query}`);
}
return;
}
}