Hi,
i have a problem with Atom Feed from google reader public category feed
eg:
<entry gr:crawl-timestamp-msec="1295272520986">
<id gr:original-id="">tag:google.com,2005:reader/item/c22ac02fd9577f9e</id>
<title type="html">
How to send HTML email with drupal_mail function in Drupal 6 | Anexus IT
</title>
<published>2011-01-17T13:55:20Z</published>
<updated>2011-01-17T13:55:20Z</updated>
<link rel="alternate" href="http://anexusit.com/blog/how-send-html-email-drupalmail-function-drupal-6" type="text/html"/>
<link rel="related" href="http://anexusit.com/" title="anexusit.com"/>
<author gr:unknown-author="true">
<name>(author unknown)</name>
</author>
<source gr:stream-id="user/12082553810243295800/source/com.google/link">
<id>
tag:google.com,2005:reader/user/12082553810243295800/source/com.google/link
</id>
<title type="html">anexusit.com</title>
<link rel="alternate" href="http://anexusit.com/" type="text/html"/>
</source>
</entry>
This item is archiving like:
iid: 4444
fid: 8
title: How to send HTML email with drupal_mail function in Drupal 6 | Anexus ITanexusit.com
link: http://anexusit.com/
author:
description:
timestamp: 1295272520
guid:
due to
<link rel="related" href="http://anexusit.com/" title="anexusit.com"/>
that ovverride
<link rel="alternate" href="http://anexusit.com/blog/how-send-html-email-drupalmail-function-drupal-6" type="text/html"/>
in aggregator_element_start
My fix is that:
case 'LINK':
if (!empty($attributes['REL']) && $attributes['REL'] == 'alternate') {
if ($element == 'ITEM') {
if(!$items[$item]['LINK'])
$items[$item]['LINK'] = $attributes['HREF'];
}
else {
$channel['LINK'] = $attributes['HREF'];
}
}
break;
Comments
Comment #1
M_T commentedComment #2
dddave commented6.9?
Comment #3
M_T commentedComment #4
juampynr commentedM_T, create a patch and attach it in a new comment of this thread to be reviewed by the community.