Use new urlQueryString method from RSWeb.
This commit is contained in:
parent
f430d6a095
commit
8df34bfcda
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue