aboutsummaryrefslogtreecommitdiff
path: root/app/Models/CategoryDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-12-27 15:18:36 +0100
committerGravatar GitHub <noreply@github.com> 2023-12-27 15:18:36 +0100
commitd65f77c081e756997e59e602f49eeea9b09799ff (patch)
tree0094569a28b089a90ce146ee3782cfbff4fc0be9 /app/Models/CategoryDAO.php
parente9689645383d37231afa9dbbcd9bd765b804046d (diff)
More robust assignment of categories to feeds (#5986)
Several minor cases, none of which should really be necessary Might help: https://github.com/FreshRSS/FreshRSS/issues/5981 https://github.com/FreshRSS/FreshRSS/issues/5982
Diffstat (limited to 'app/Models/CategoryDAO.php')
-rw-r--r--app/Models/CategoryDAO.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Models/CategoryDAO.php b/app/Models/CategoryDAO.php
index 417ff7a6c..a22cda420 100644
--- a/app/Models/CategoryDAO.php
+++ b/app/Models/CategoryDAO.php
@@ -401,6 +401,7 @@ SQL;
foreach ($categories as $category) {
foreach ($category->feeds() as $feed) {
if ($feed->id() === $feed_id) {
+ $feed->_category($category); // Should already be done; just to be safe
return $feed;
}
}