Allow dynamic search operator in user queries (#6851)

* Allow dynamic search operator in user queries
fix https://github.com/FreshRSS/FreshRSS/issues/6849

* Other approach
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2024-10-02 08:20:15 +02:00
1 parent 2489b6259a
commit 2d0897ea74
3 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ class FreshRSS_UserQuery {
}
// linked too deeply with the search object, need to use dependency injection
$this->search = new FreshRSS_BooleanSearch($query['search'], 0, 'AND', false);
$this->search = new FreshRSS_BooleanSearch($query['search'], 0, 'AND', allowUserQueries: true);
if (!empty($query['state'])) {
$this->state = intval($query['state']);
}