Now the filter context things are fixed.

This commit is contained in:
LucasGGamerM 2023-02-04 14:52:41 -03:00
parent 0b9b51294e
commit 3fcf8818c0

View File

@ -46,7 +46,7 @@ public class StatusFilterPredicate implements Predicate<Status>{
}
boolean matches=status.filtered.stream()
.map(filterResult->filterResult.filter)
.filter(filter->filter.expiresAt==null||filter.expiresAt.isAfter(Instant.now())&&filter.context.contains(filterContext))
.filter(filter->(filter.expiresAt==null||filter.expiresAt.isAfter(Instant.now()))&&filter.context.contains(filterContext))
.anyMatch(filter->filter.filterAction==Filter.FilterAction.WARN);
return !matches;
}