diff --git a/Tusker/Screens/Timeline/TimelineViewController.swift b/Tusker/Screens/Timeline/TimelineViewController.swift index 57ebd37c..65285c78 100644 --- a/Tusker/Screens/Timeline/TimelineViewController.swift +++ b/Tusker/Screens/Timeline/TimelineViewController.swift @@ -292,6 +292,10 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro return false } activityToRestore = nil + let existingStatuses = statusIDs.filter { mastodonController.persistentContainer.status(for: $0) != nil } + guard !existingStatuses.isEmpty else { + return false + } loadViewIfNeeded() controller.restoreInitial { var snapshot = dataSource.snapshot()