forked from shadowfacts/Tusker
Fix not being able to sign into Mastodon instances not in the
recommended list
This commit is contained in:
parent
1e066ac28e
commit
ec2062ad42
|
@ -159,7 +159,9 @@ class InstanceSelectorTableViewController: UITableViewController {
|
||||||
}
|
}
|
||||||
switch item {
|
switch item {
|
||||||
case let .selected(instance):
|
case let .selected(instance):
|
||||||
delegate.didSelectInstance(url: URL(string: instance.uri)!)
|
// we can't just turn the URI string from the API into a URL instance, because Mastodon only includes the domain in the "URI"
|
||||||
|
let components = parseURLComponents(input: instance.uri)
|
||||||
|
delegate.didSelectInstance(url: components.url!)
|
||||||
case let .recommended(instance):
|
case let .recommended(instance):
|
||||||
var components = URLComponents()
|
var components = URLComponents()
|
||||||
components.scheme = "https"
|
components.scheme = "https"
|
||||||
|
|
Loading…
Reference in New Issue