From 5448288f5068e853d1f86bf503cdbd7b5af0d845 Mon Sep 17 00:00:00 2001 From: Lhc_fl Date: Fri, 18 Oct 2024 08:45:45 +0800 Subject: [PATCH] feat: allow search .bsky.social account #notesearch --- packages/frontend/src/pages/search.note.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/search.note.vue b/packages/frontend/src/pages/search.note.vue index 105c947d2..6a014d2ab 100644 --- a/packages/frontend/src/pages/search.note.vue +++ b/packages/frontend/src/pages/search.note.vue @@ -175,7 +175,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; } }