From 223a941be7d74e5630b554877929cd6df65b7c95 Mon Sep 17 00:00:00 2001 From: ORelio Date: Fri, 2 Apr 2021 21:45:58 +0200 Subject: [PATCH] [FeedExpander] Handle Atom enclosures --- lib/FeedExpander.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index bc6dc24066d..86692644ac2 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -270,7 +270,9 @@ protected function parseATOMItem($feedItem){ 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']; } } }