# RSS polling plugin ignores items’ pubDate

**URL:** https://meta.discourse.org/t/rss-polling-plugin-ignores-items-pubdate/168833
**Category:** Support
**Tags:** rss-polling
**Created:** [October 31, 2020, 10:03am UTC](https://meta.discourse.org/t/rss-polling-plugin-ignores-items-pubdate/168833 "2020-10-31T10:03:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [October 31, 2020, 10:03am UTC](https://meta.discourse.org/t/rss-polling-plugin-ignores-items-pubdate/168833/1 "2020-10-31T10:03:18Z")

</div>

I’m using the RSS polling plugin: [RSS Polling](https://meta.discourse.org/t/configure-the-discourse-rss-polling-plugin/156387)

It seems to ignore the pubDate of each item.

This is linked with the following observations:

1. It sucks up every item in the RSS feed and can’t be told only to get the latest x items.

2. The Discourse post date is the date of import rather than the date of item.

3. It doesn’t necessarily post them in the right order.

4. If an old RSS item changes (the guid anyway) a new Discourse post will be created.

5. If a post is deleted the plugin re-creates it as if it had never existed.

Admittedly most of these are only relevant when initially adding a feed.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 2, 2020, 9:54pm UTC](https://meta.discourse.org/t/rss-polling-plugin-ignores-items-pubdate/168833/2 "2020-11-02T21:54:22Z")

</div>

> [@Jonathan5](#):
>
> It seems to ignore the pubDate of each item.

You are correct that the `pubDate` is ignored. The topic’s timestamp will be set to when the topic was created on Discourse, not when the RSS post was initially published.

> [@Jonathan5](#):
>
> If an old RSS item changes (the guid anyway) a new Discourse post will be created.

I’m not sure if there is any way this could be prevented. The feed item’s URL (the value of its `link` attribute) is used to determine if the topic already exists on Discourse.

> [@Jonathan5](#):
>
> If a post is deleted the plugin re-creates it as if it had never existed.

The easiest work around for this is to unlist the topic instead of deleting it. That way it won’t be re-created.

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [November 2, 2020, 10:36pm UTC](https://meta.discourse.org/t/rss-polling-plugin-ignores-items-pubdate/168833/3 "2020-11-02T22:36:25Z")

</div>

Thanks for replying.

> [@simon](#):
>
> I’m not sure if there is any way this could be prevented. The feed item’s URL (the value of its `link` attribute) is used to determine if the topic already exists on Discourse.

The plugin could be told only to get the last n items from the feed based on `pubDate`, so if the `link` of an old item changes it would be ignored.

This is was I originally thought `Maximum number of posts to embed` was for (hence some of my initial confusion).

> [@simon](#):
>
> The easiest work around for this is to unlist the topic instead of deleting it. That way it won’t be re-created.

This is what I did in the end.

Putting it all in perspective, I can see that the RSS plugin works all right, and after the initial few items the `pubDate` and topic creation date will be the same, and usually it won’t be a problem to create a new topic for every item in the feed.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 4, 2021, 6:33pm UTC](https://meta.discourse.org/t/rss-polling-plugin-ignores-items-pubdate/168833/4 "2021-02-04T18:33:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
