aboutsummaryrefslogtreecommitdiff
path: root/app/Models/BooleanSearch.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-09-26 22:38:09 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-26 22:38:09 +0200
commit89a3d36c3e680bcbaf361ff60ca96b3e79f42968 (patch)
tree698ca3674ba49ac5e41d646fe9d907786c07050e /app/Models/BooleanSearch.php
parent86d713478b25816340aebeeacca704f3aeee17af (diff)
Fix search using user queries (#5669)
fix https://github.com/FreshRSS/FreshRSS/issues/5668
Diffstat (limited to 'app/Models/BooleanSearch.php')
-rw-r--r--app/Models/BooleanSearch.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php
index 0a50464de..03fec4cb7 100644
--- a/app/Models/BooleanSearch.php
+++ b/app/Models/BooleanSearch.php
@@ -90,10 +90,14 @@ class FreshRSS_BooleanSearch {
}
if (!empty($all_matches)) {
+ $category_dao = FreshRSS_Factory::createCategoryDao();
+ $feed_dao = FreshRSS_Factory::createFeedDao();
+ $tag_dao = FreshRSS_Factory::createTagDao();
+
/** @var array<string,FreshRSS_UserQuery> */
$queries = [];
foreach (FreshRSS_Context::$user_conf->queries as $raw_query) {
- $query = new FreshRSS_UserQuery($raw_query);
+ $query = new FreshRSS_UserQuery($raw_query, $feed_dao, $category_dao, $tag_dao);
$queries[] = $query;
}