mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 00:59:35 +00:00
[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
@ -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 New Issue
Block a user