1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

Make filter mutator API consistent with search mutator API.

This is inline with the docblock for the Filter extender, and is much more sensible.
This commit is contained in:
Alexander Skvortsov
2021-03-11 23:12:49 -05:00
parent 4e126708e9
commit db0d8e89c7
2 changed files with 5 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ abstract class AbstractFilterer
// END DEPRECATED BC LAYER
foreach ($this->filterMutators as $mutator) {
$mutator($query, $actor, $criteria->query, $criteria->sort);
$mutator($filterState, $criteria);
}
// Execute the filter query and retrieve the results. We get one more