[FeedExpander] Fix item href being used as feed uri (#1033)

This commit is contained in:
ORelio 2019-02-11 19:07:03 +01:00 committed by LogMANOriginal
parent 556a417dd6
commit ca9c2abb60

View file

@ -265,7 +265,7 @@ abstract class FeedExpander extends BridgeAbstract {
//When "link" field is present, URL is more reliable than "id" field
if (count($feedItem->link) === 1) {
$this->uri = (string)$feedItem->link[0]['href'];
$item['uri'] = (string)$feedItem->link[0]['href'];
} else {
foreach($feedItem->link as $link) {
if(strtolower($link['rel']) === 'alternate') {