[FeedExpander] widen guid use as uri provider

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-09-15 12:34:07 +02:00
parent 4c3b80fca9
commit ca0842ccf8
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}