forked from shadowfacts/Tusker
Fix reblog statuses being selected in timeline
This commit is contained in:
parent
212ce69ffd
commit
c15a5fc90f
|
@ -368,7 +368,9 @@ extension TimelineViewController: UICollectionViewDelegate {
|
||||||
case .publicTimelineDescription:
|
case .publicTimelineDescription:
|
||||||
removeTimelineDescriptionCell()
|
removeTimelineDescriptionCell()
|
||||||
case .status(id: let id, state: let state):
|
case .status(id: let id, state: let state):
|
||||||
selected(status: id, state: state.copy())
|
let status = mastodonController.persistentContainer.status(for: id)!
|
||||||
|
// if the status in the timeline is a reblog, show the status that it is a reblog of
|
||||||
|
selected(status: status.reblog?.id ?? id, state: state.copy())
|
||||||
case .loadingIndicator, .confirmLoadMore:
|
case .loadingIndicator, .confirmLoadMore:
|
||||||
fatalError("unreachable")
|
fatalError("unreachable")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue