Skip to content
Snippets Groups Projects
Commit 12c5416d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #38593 by malex: generate 'guid' in RSS feeds to work around some aggregator glitches.

parent 5f36738a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1455,7 +1455,7 @@ function node_feed($nodes = 0, $channel = array()) { ...@@ -1455,7 +1455,7 @@ function node_feed($nodes = 0, $channel = array()) {
// Allow modules to add additional item fields // Allow modules to add additional item fields
$extra = node_invoke_nodeapi($item, 'rss item'); $extra = node_invoke_nodeapi($item, 'rss item');
$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name))); $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false'))));
foreach ($extra as $element) { foreach ($extra as $element) {
if ($element['namespace']) { if ($element['namespace']) {
$namespaces = array_merge($namespaces, array($element['namespace'])); $namespaces = array_merge($namespaces, array($element['namespace']));
......
...@@ -1455,7 +1455,7 @@ function node_feed($nodes = 0, $channel = array()) { ...@@ -1455,7 +1455,7 @@ function node_feed($nodes = 0, $channel = array()) {
// Allow modules to add additional item fields // Allow modules to add additional item fields
$extra = node_invoke_nodeapi($item, 'rss item'); $extra = node_invoke_nodeapi($item, 'rss item');
$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name))); $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false'))));
foreach ($extra as $element) { foreach ($extra as $element) {
if ($element['namespace']) { if ($element['namespace']) {
$namespaces = array_merge($namespaces, array($element['namespace'])); $namespaces = array_merge($namespaces, array($element['namespace']));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment