1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 13:50:23 +02:00

[FeedExpander] Handle Atom enclosures (#2039)

This commit is contained in:
ORelio
2021-04-04 12:21:15 +02:00
committed by GitHub
parent 3423b3bbe1
commit b754d14698

View File

@@ -270,7 +270,9 @@ abstract class FeedExpander extends BridgeAbstract {
foreach($feedItem->link as $link) {
if(strtolower($link['rel']) === 'alternate') {
$item['uri'] = (string)$link['href'];
break;
}
if(strtolower($link['rel']) === 'enclosure') {
$item['enclosures'][] = (string)$link['href'];
}
}
}