Fix search: independent relay queries, nostr: URI prefix, add nostr.wine

This commit is contained in:
Jure
2026-03-31 06:33:34 +02:00
parent 6a7a0bccf3
commit 3ac3e11d3c
2 changed files with 33 additions and 19 deletions

View File

@@ -199,7 +199,8 @@ export function SearchView() {
}, []);
const handleSearch = async (overrideQuery?: string) => {
const q = (overrideQuery ?? query).trim();
// Strip nostr: URI prefix (NIP-21) so pasted share links work
const q = (overrideQuery ?? query).trim().replace(/^nostr:/i, "");
if (!q) return;
if (overrideQuery) setQuery(overrideQuery);