From 20d23d2c74bc5b6502f27a7ff2be2d6975a08c81 Mon Sep 17 00:00:00 2001 From: Petros Koutsolampros <2184600+pklampros@users.noreply.github.com> Date: Tue, 30 Jun 2026 11:38:12 +0300 Subject: [PATCH] Add category filtering to FilterBridge --- bridges/FilterBridge.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bridges/FilterBridge.php b/bridges/FilterBridge.php index a1066fb5cfb..984ad53ffa9 100644 --- a/bridges/FilterBridge.php +++ b/bridges/FilterBridge.php @@ -55,6 +55,11 @@ class FilterBridge extends FeedExpander 'type' => 'checkbox', 'required' => false, ], + 'target_category' => [ + 'name' => 'Apply filter on category', + 'type' => 'checkbox', + 'required' => false, + ], 'target_title' => [ 'name' => 'Apply filter on title', 'type' => 'checkbox', @@ -127,6 +132,9 @@ protected function parseItem(array $item) if ($this->getInput('target_content')) { $filter_fields[] = $item['content'] ?? null; } + if ($this->getInput('target_category')) { + $filter_fields[] = $item['category'] ?? null; + } if ($this->getInput('target_title')) { $filter_fields[] = $item['title'] ?? null; }