[FeedItem] Filter duplicate enclosures

This commit is contained in:
logmanoriginal 2019-03-21 19:42:44 +01:00
parent 835af1faf1
commit 6293c3d33d

View file

@ -347,7 +347,7 @@ class FeedItem {
$enclosure, $enclosure,
FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)) { FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)) {
Debug::log('Each enclosure must contain a scheme, host and path!'); Debug::log('Each enclosure must contain a scheme, host and path!');
} else { } elseif(!in_array($enclosure, $this->enclosures)) {
$this->enclosures[] = $enclosure; $this->enclosures[] = $enclosure;
} }
} }