Replace indexed mentions with NIP-27
Changelog-Fixed: Replace indexed mentions with NIP-27 Closes: #1213
This commit is contained in:
1 parent
1d3c181b85
commit
14977fe3dd
6 files changed
+24
-29
No files matched your search
@@ -63,7 +63,7 @@ struct UserSearch: View {
|
||||
|
||||
let tagAttributedString = NSMutableAttributedString(string: tagString,
|
||||
attributes: [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 18.0),
|
||||
NSAttributedString.Key.link: "@\(pk)"])
|
||||
NSAttributedString.Key.link: "nostr:\(pk)"])
|
||||
tagAttributedString.removeAttribute(.link, range: NSRange(location: tagAttributedString.length - 2, length: 2))
|
||||
tagAttributedString.addAttributes([NSAttributedString.Key.foregroundColor: UIColor.label], range: NSRange(location: tagAttributedString.length - 2, length: 2))
|
||||
|
||||
|
||||
Reference in new issue
Block a user