diff options
| author | 2024-04-07 21:45:40 +0200 | |
|---|---|---|
| committer | 2024-04-07 21:45:40 +0200 | |
| commit | c052149e5aa6eccdafd70f1e85e56cc4dd57ed8b (patch) | |
| tree | 6e27c94dcaba9232ea2ee927253d82f842e56541 | |
| parent | e3c86a164d9903a99f10affae095f350e4075287 (diff) | |
Avoid duplicates in Dynamic OPML (#6264)
Avoid duplicate feeds if the dynamic OPML contains the same feed multiple times
| -rw-r--r-- | app/Models/Category.php | 1 |
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()) { |
