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
2024-10-02 08:20:15 +02:00
committed by GitHub
parent 2489b6259a
commit 2d0897ea74
3 changed files with 11 additions and 11 deletions

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']);
}