From d65f77c081e756997e59e602f49eeea9b09799ff Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 27 Dec 2023 15:18:36 +0100 Subject: 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 --- app/Models/CategoryDAO.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Models/CategoryDAO.php') 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; } } -- cgit v1.2.3