From c052149e5aa6eccdafd70f1e85e56cc4dd57ed8b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 7 Apr 2024 21:45:40 +0200 Subject: Avoid duplicates in Dynamic OPML (#6264) Avoid duplicate feeds if the dynamic OPML contains the same feed multiple times --- app/Models/Category.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Models') diff --git a/app/Models/Category.php b/app/Models/Category.php index 13bb184d5..691ac1066 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -214,6 +214,7 @@ class FreshRSS_Category extends Minz_Model { // The feed does not exist in the current category, so add that feed $dryRunFeed->_category($this); $ok &= ($feedDAO->addFeedObject($dryRunFeed) !== false); + $existingFeeds[$dryRunFeed->url()] = $dryRunFeed; } else { $existingFeed = $existingFeeds[$dryRunFeed->url()]; if ($existingFeed->mute()) { -- cgit v1.2.3