Don't apply expired filters

This commit is contained in:
Shadowfacts 2022-12-04 11:55:46 -05:00
parent 97c7104dbc
commit b28f616e85
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class Filterer {
matchers = []
filterObservers = []
for filter in filters where filter.contexts.contains(context) {
for filter in filters where (filter.expiresAt == nil || filter.expiresAt! > Date()) && filter.contexts.contains(context) {
guard let matcher = filter.createMatcher() else {
continue
}