nip19: add naddr link support
Add functionality for when user taps on naddr link they get redirected to the proper note. Closes: https://github.com/damus-io/damus/issues/1806 Changelog-Added: Add naddr link support Lightning-url: LNURL1DP68GURN8GHJ7EM9W3SKCCNE9E3K7MF0D3H82UNVWQHKWUN9V4HXGCTHDC6RZVGR8SW3G Signed-off-by: kernelkind <kernelkind@gmail.com> Reviewed-by: William Casarin <jb55@jb55.com> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
William Casarin
parent
3056ab9bfb
commit
a4a0465605
@@ -79,7 +79,7 @@ func decode_nostr_bech32_uri(_ s: String) -> NostrLink? {
|
||||
case .nscript(let data):
|
||||
return .script(data)
|
||||
case .naddr(let naddr):
|
||||
return .none // TODO: FIX
|
||||
return .ref(.naddr(naddr))
|
||||
case .nevent(let nevent):
|
||||
return .ref(.event(nevent.noteid))
|
||||
case .nprofile(let nprofile):
|
||||
|
||||
Reference in New Issue
Block a user