Avoid duplicates in Dynamic OPML (#6264)

Avoid duplicate feeds if the dynamic OPML contains the same feed multiple times
This commit is contained in:
Alexandre Alapetite
2024-04-07 21:45:40 +02:00
committed by GitHub
parent e3c86a164d
commit c052149e5a

View File

@@ -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()) {