mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 18:32:55 +00:00
Use new urlQueryString method from RSWeb.
This commit is contained in:
1 parent
f430d6a095
commit
8df34bfcda
1 file changed
+3
-2
@@ -61,10 +61,11 @@ final class SendToMicroBlogCommand: SendToCommand {
|
||||
s = link
|
||||
}
|
||||
|
||||
guard let encodedString = s.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) else {
|
||||
let urlQueryDictionary = ["text": s]
|
||||
guard let urlQueryString = urlQueryDictionary.urlQueryString() else {
|
||||
return
|
||||
}
|
||||
guard let url = URL(string: "microblog://post?text=" + encodedString) else {
|
||||
guard let url = URL(string: "microblog://post?" + urlQueryString) else {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user