From ed90139b0cf75ac7b0f2a257f0af3bf28567c819 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 21 Mar 2023 06:35:08 -0600 Subject: [PATCH] Fix bug where nostr: links and QRs stopped working Changelog-Fixed: Fix bug where nostr: links and QRs stopped working --- damus/Nostr/NostrLink.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Nostr/NostrLink.swift b/damus/Nostr/NostrLink.swift index 563af125..96dbe09a 100644 --- a/damus/Nostr/NostrLink.swift +++ b/damus/Nostr/NostrLink.swift @@ -127,7 +127,7 @@ func decode_nostr_uri(_ s: String) -> NostrLink? { var uri = s.replacingOccurrences(of: "nostr://", with: "") uri = uri.replacingOccurrences(of: "nostr:", with: "") - uri = s.replacingOccurrences(of: "damus://", with: "") + uri = uri.replacingOccurrences(of: "damus://", with: "") uri = uri.replacingOccurrences(of: "damus:", with: "") let parts = uri.split(separator: ":")