mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 00:27:27 +02:00
Merge branch 'bridges2feeds' of https://framagit.org/peetah/rss-bridge
This commit is contained in:
@@ -151,6 +151,18 @@ abstract class FeedExpander extends BridgeAbstract {
|
||||
$namespaces = $feedItem->getNamespaces(true);
|
||||
if(isset($namespaces['dc'])) $dc = $feedItem->children($namespaces['dc']);
|
||||
|
||||
if(isset($feedItem->guid)){
|
||||
foreach($feedItem->guid->attributes() as $attribute=>$value){
|
||||
if($attribute === 'isPermaLink' && (
|
||||
$value === 'true' ||
|
||||
filter_var($feedItem->guid,FILTER_VALIDATE_URL)
|
||||
)){
|
||||
$item['uri'] = $feedItem->guid;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($feedItem->pubDate)){
|
||||
$item['timestamp'] = strtotime($feedItem->pubDate);
|
||||
} elseif(isset($dc->date)){
|
||||
|
Reference in New Issue
Block a user