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

M_T’s picture

Version: 6.x-dev » 6.9
Component: documentation » aggregator.module
dddave’s picture

6.9?

M_T’s picture

Version: 6.9 » 6.20
juampynr’s picture

Status: Active » Needs work

M_T, create a patch and attach it in a new comment of this thread to be reviewed by the community.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.