Fix home/list filters not applying to lists

This commit is contained in:
Shadowfacts 2022-12-03 22:50:17 -05:00
parent a17afe247c
commit 75e9c9f986
1 changed files with 8 additions and 1 deletions

View File

@ -29,7 +29,14 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
init(for timeline: Timeline, mastodonController: MastodonController!) {
self.timeline = timeline
self.mastodonController = mastodonController
self.filterer = Filterer(mastodonController: mastodonController, context: timeline == .home ? .home : .public)
let filterContext: FilterV1.Context
switch timeline {
case .home, .list(id: _):
filterContext = .home
default:
filterContext = .public
}
self.filterer = Filterer(mastodonController: mastodonController, context: filterContext)
super.init(nibName: nil, bundle: nil)