summaryrefslogtreecommitdiff
path: root/app/Models/Category.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-04-07 21:45:40 +0200
committerGravatar GitHub <noreply@github.com> 2024-04-07 21:45:40 +0200
commitc052149e5aa6eccdafd70f1e85e56cc4dd57ed8b (patch)
tree6e27c94dcaba9232ea2ee927253d82f842e56541 /app/Models/Category.php
parente3c86a164d9903a99f10affae095f350e4075287 (diff)
Avoid duplicates in Dynamic OPML (#6264)
Avoid duplicate feeds if the dynamic OPML contains the same feed multiple times
Diffstat (limited to 'app/Models/Category.php')
-rw-r--r--app/Models/Category.php1
1 files changed, 1 insertions, 0 deletions
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()) {