projects
/
project/drupal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1653a02
)
Issue #971812 by mfb, twistor: aggregator ignores Atom id element, which is equivalen...
author
Gábor Hojtsy
Wed, 23 Nov 2011 10:54:23 +0000 (11:54 +0100)
committer
Gábor Hojtsy
Wed, 23 Nov 2011 10:54:23 +0000 (11:54 +0100)
modules/aggregator/aggregator.module
patch
|
blob
|
blame
|
history
diff --git
a/modules/aggregator/aggregator.module
b/modules/aggregator/aggregator.module
index
59a4fdb
..
0afb9f5
100644
(file)
--- a/
modules/aggregator/aggregator.module
+++ b/
modules/aggregator/aggregator.module
@@
-751,7
+751,17
@@
function aggregator_parse_feed(&$data, $feed) {
else {
$link = $feed['link'];
}
- $guid = isset($item['GUID']) ? $item['GUID'] : '';
+
+ // Atom feeds use ID rather than GUID.
+ if (isset($item['GUID'])) {
+ $guid = $item['GUID'];
+ }
+ elseif (isset($item['ID'])) {
+ $guid = $item['ID'];
+ }
+ else {
+ $guid = '';
+ }
// Atom feeds have a CONTENT and/or SUMMARY tag instead of a DESCRIPTION tag.
if (!empty($item['CONTENT:ENCODED'])) {