[FeedItem] Filter duplicate enclosures
This commit is contained in:
parent
835af1faf1
commit
6293c3d33d
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ class FeedItem {
|
|||
$enclosure,
|
||||
FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)) {
|
||||
Debug::log('Each enclosure must contain a scheme, host and path!');
|
||||
} else {
|
||||
} elseif(!in_array($enclosure, $this->enclosures)) {
|
||||
$this->enclosures[] = $enclosure;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue