Fix sharing links

- Fix AlternativeTo URL
- Drop ProductHunt
This commit is contained in:
Davide De Rosa 2021-02-04 15:37:54 +01:00
parent b60f579a95
commit 7be724fb53
2 changed files with 2 additions and 12 deletions

View File

@ -44,7 +44,7 @@ class AboutViewController: UITableViewController, StrongTableHost {
model.set([.version, .credits], forSection: .info)
model.set([.readme, .changelog], forSection: .github)
model.set([.website, .faq, .disclaimer, .privacyPolicy], forSection: .web)
model.set([.shareTwitter, .shareGeneric, .visitAlternativeTo, .visitProductHunt], forSection: .share)
model.set([.shareTwitter, .shareGeneric, .visitAlternativeTo], forSection: .share)
return model
}()
@ -129,8 +129,6 @@ extension AboutViewController {
case shareGeneric
case visitAlternativeTo
case visitProductHunt
}
override func numberOfSections(in tableView: UITableView) -> Int {
@ -193,9 +191,6 @@ extension AboutViewController {
case .visitAlternativeTo:
cell.leftText = "AlternativeTo"
case .visitProductHunt:
cell.leftText = "ProductHunt"
}
return cell
}
@ -234,9 +229,6 @@ extension AboutViewController {
case .visitAlternativeTo:
visitURL(AppConstants.URLs.alternativeTo)
case .visitProductHunt:
visitURL(AppConstants.URLs.productHunt)
}
tableView.deselectRow(at: indexPath, animated: true)
}

View File

@ -207,9 +207,7 @@ public class AppConstants {
public static let githubSponsors = URL(string: "https://www.github.com/sponsors/passepartoutvpn")!
public static let alternativeTo = URL(string: "https://alternativeto.net/software/passepartout-vpn/")!
public static let productHunt = URL(string: "https://www.producthunt.com/posts/passepartout-vpn/")!
public static let alternativeTo = URL(string: "https://alternativeto.net/software/passepartout-vpn/about/")!
private static let twitterHashtags = ["OpenVPN", "iOS", "macOS"]