1
0
Fork 0
forked from blallo/rss-bridge

[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

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