[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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'];
}
}
}