mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Avoid duplicates in Dynamic OPML (#6264)
Avoid duplicate feeds if the dynamic OPML contains the same feed multiple times
This commit is contained in:
committed by
GitHub
parent
e3c86a164d
commit
c052149e5a
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user