Fix home/list filters not applying to lists
This commit is contained in:
parent
a17afe247c
commit
75e9c9f986
|
@ -29,7 +29,14 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
|
||||||
init(for timeline: Timeline, mastodonController: MastodonController!) {
|
init(for timeline: Timeline, mastodonController: MastodonController!) {
|
||||||
self.timeline = timeline
|
self.timeline = timeline
|
||||||
self.mastodonController = mastodonController
|
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)
|
super.init(nibName: nil, bundle: nil)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue