[FeedExpander] Fix item href being used as feed uri (#1033)
This commit is contained in:
parent
556a417dd6
commit
ca9c2abb60
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ abstract class FeedExpander extends BridgeAbstract {
|
||||||
|
|
||||||
//When "link" field is present, URL is more reliable than "id" field
|
//When "link" field is present, URL is more reliable than "id" field
|
||||||
if (count($feedItem->link) === 1) {
|
if (count($feedItem->link) === 1) {
|
||||||
$this->uri = (string)$feedItem->link[0]['href'];
|
$item['uri'] = (string)$feedItem->link[0]['href'];
|
||||||
} else {
|
} else {
|
||||||
foreach($feedItem->link as $link) {
|
foreach($feedItem->link as $link) {
|
||||||
if(strtolower($link['rel']) === 'alternate') {
|
if(strtolower($link['rel']) === 'alternate') {
|
||||||
|
|
Loading…
Reference in a new issue