Images are doubled in RSS field

remi - June 12, 2009 - 10:08
Project:Inline
Version:6.x-1.0
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

For some reasons, image files attached to my node will get displayed twice in my site's RSS feed, but are displayed the way they should on the site's front page. You can see a live example of this on my site and it's RSS feed.

A few things to keep in mind:

  • The front page is generated by the views module.
  • The site is multilingual and using the i18n module.
  • Images duplicated are inserted by the inline module.
  • Images are inserted automatically -- the inline tag isn't used.
  • Although the feed is processed by FeedBurner, the same is displayed in the original feed generated by Drupal.
  • The inline module is using the imagecache module to scale the images down.

First, I'm wondering if it's caused by the inline module. And second, how should I fix this?

#1

remi - June 12, 2009 - 10:23

I have a temporary fix. I commented out the line 238 in inline.module where it says in the inline_nodeapi() function:

<?php
case 'rss item':
?>

Now I realise the inline module is inserted the images twice, once because the node body is filtered and inserted by the views modules, and second because it's inserting the images for every RSS item.

#2

remi - June 15, 2009 - 17:19

Here's a patch file for the temporary change stated above.

AttachmentSize
inline_489660.patch 494 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.