mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-21 10:15:41 +02:00
enclosure method called on wrong objects
This commit is contained in:
parent
4c7c12584c
commit
bdb241340a
@ -94,8 +94,8 @@ class FeedFetcher implements IFeedFetcher {
|
||||
if($enclosure !== null) {
|
||||
$enclosureType = $enclosure->get_type();
|
||||
if(stripos($enclosureType, "audio/") !== false) {
|
||||
$enclosure->setEnclosureMime($enclosureType);
|
||||
$enclosure->setEnclosureLink($enclosure->get_link());
|
||||
$item->setEnclosureMime($enclosureType);
|
||||
$item->setEnclosureLink($enclosure->get_link());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user