fix(client-filters): readd the necessary logic for them to work again
This commit is contained in:
parent
038923bf8f
commit
e6a4f81b78
|
@ -240,6 +240,13 @@ public abstract class StatusDisplayItem{
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Moshidon
|
||||
if(applyingFilter==null){
|
||||
StatusFilterPredicate predicate = new StatusFilterPredicate(accountID, filterContext, FilterAction.WARN);
|
||||
predicate.test(status);
|
||||
applyingFilter = predicate.getApplyingFilter();
|
||||
}
|
||||
}
|
||||
|
||||
ArrayList<StatusDisplayItem> contentItems;
|
||||
|
|
|
@ -24,6 +24,8 @@ import java.util.function.Predicate;
|
|||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
// TODO: This whole class has been ditched upstream. I plan to eventually refactor it to only have the still relevant clientFilters code
|
||||
|
||||
public class StatusFilterPredicate implements Predicate<Status>{
|
||||
private final List<LegacyFilter> clientFilters;
|
||||
private final List<LegacyFilter> filters;
|
||||
|
|
Loading…
Reference in New Issue