[FeedExpander] widen guid use as uri provider
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
4c3b80fca9
commit
ca0842ccf8
1 changed files with 4 additions and 1 deletions
|
@ -153,7 +153,10 @@ abstract class FeedExpander extends BridgeAbstract {
|
|||
|
||||
if(isset($feedItem->guid)){
|
||||
foreach($feedItem->guid->attributes() as $attribute=>$value){
|
||||
if($attribute === 'isPermaLink' && $value === "true"){
|
||||
if($attribute === 'isPermaLink' && (
|
||||
$value === 'true' ||
|
||||
filter_var($feedItem->guid,FILTER_VALIDATE_URL)
|
||||
)){
|
||||
$item['uri'] = $feedItem->guid;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue