Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 57e0f09

Browse files
authored
Fix bad link for profiles (#1424)
1 parent f161876 commit 57e0f09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Classes/Issues/IssuesViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ IssueManagingNavSectionControllerDelegate {
117117
let labelString = String(format: labelFormat, arguments: [model.number, model.repo, model.owner])
118118

119119
let navigationTitle = NavigationTitleDropdownView()
120-
navigationItem.titleView = navigationTitle
121120
navigationTitle.addTarget(self, action: #selector(onNavigationTitle(sender:)), for: .touchUpInside)
122121
navigationTitle.configure(
123122
title: "#\(model.number)",
124123
subtitle: "\(model.owner)/\(model.repo)",
125124
accessibilityLabel: labelString
126125
)
126+
navigationItem.titleView = navigationTitle
127127

128128
feed.viewDidLoad()
129129
feed.adapter.dataSource = self
@@ -244,7 +244,7 @@ IssueManagingNavSectionControllerDelegate {
244244
func viewOwnerAction() -> UIAlertAction? {
245245
weak var weakSelf = self
246246
return AlertAction(AlertActionBuilder { $0.rootViewController = weakSelf })
247-
.view(owner: "@\(model.owner)")
247+
.view(owner: model.owner)
248248
}
249249

250250
func viewRepoAction() -> UIAlertAction? {

Classes/Utility/AlertAction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct AlertAction {
5353
}
5454

5555
func view(owner: String) -> UIAlertAction {
56-
return UIAlertAction(title: owner, style: .default) { _ in
56+
return UIAlertAction(title: "@\(owner)", style: .default) { _ in
5757
guard let url = URL(string: "https://github.com/\(owner)") else { return }
5858
self.rootViewController?.presentSafari(url: url)
5959
}

0 commit comments

Comments
 (0)