diff --git a/packages/app/src/Element/Text.tsx b/packages/app/src/Element/Text.tsx index 6453de00..6a173bab 100644 --- a/packages/app/src/Element/Text.tsx +++ b/packages/app/src/Element/Text.tsx @@ -39,14 +39,14 @@ export default function Text({ content, tags, creator, disableMedia, depth }: Te const validateLink = () => { const normalizedStr = a.toLowerCase(); - if (normalizedStr.startsWith("web+nostr") || normalizedStr.startsWith("nostr")) { + if (normalizedStr.startsWith("web+nostr:") || normalizedStr.startsWith("nostr:")) { return validateNostrLink(normalizedStr); } return ( - normalizedStr.startsWith("http") || - normalizedStr.startsWith("https") || - normalizedStr.startsWith("magnet") + normalizedStr.startsWith("http:") || + normalizedStr.startsWith("https:") || + normalizedStr.startsWith("magnet:") ); };