Fix reblog statuses being selected in timeline

This commit is contained in:
Shadowfacts 2022-10-10 14:23:22 -04:00
parent 212ce69ffd
commit c15a5fc90f
1 changed files with 3 additions and 1 deletions

View File

@ -368,7 +368,9 @@ extension TimelineViewController: UICollectionViewDelegate {
case .publicTimelineDescription:
removeTimelineDescriptionCell()
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:
fatalError("unreachable")
}