diff --git a/Tusker/Screens/Explore/TrendingStatusesViewController.swift b/Tusker/Screens/Explore/TrendingStatusesViewController.swift index 6166539d..988c5302 100644 --- a/Tusker/Screens/Explore/TrendingStatusesViewController.swift +++ b/Tusker/Screens/Explore/TrendingStatusesViewController.swift @@ -18,6 +18,8 @@ class TrendingStatusesViewController: UIViewController { } private var dataSource: UICollectionViewDiffableDataSource! + private var loaded = false + init(mastodonController: MastodonController) { self.mastodonController = mastodonController @@ -89,7 +91,10 @@ class TrendingStatusesViewController: UIViewController { dataSource.apply(snapshot, animatingDifferences: false) Task { - await loadTrendingStatuses() + if !loaded { + loaded = true + await loadTrendingStatuses() + } } }