Explorar el Código

Avoid duplicates in Dynamic OPML (#6264)

Avoid duplicate feeds if the dynamic OPML contains the same feed multiple times
Alexandre Alapetite hace 2 años
padre
commit
c052149e5a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/Models/Category.php

+ 1 - 0
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()) {