From c5b463c29e67ec13ca2b60672f13e6c1f03a6299 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Fri, 1 Dec 2023 16:33:20 +0100 Subject: [PATCH] fix: tag filter --- extensions/tags/src/Search/Filter/TagFilter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/tags/src/Search/Filter/TagFilter.php b/extensions/tags/src/Search/Filter/TagFilter.php index 2446cf5025..5c82c6bfde 100644 --- a/extensions/tags/src/Search/Filter/TagFilter.php +++ b/extensions/tags/src/Search/Filter/TagFilter.php @@ -43,6 +43,8 @@ public function filter(SearchState $state, string|array $value, bool $negate): v protected function constrain(Builder $query, string|array $rawSlugs, bool $negate, User $actor): void { + $rawSlugs = (array) $rawSlugs; + $inputSlugs = $this->asStringArray($rawSlugs); foreach ($inputSlugs as $orSlugs) {