Option to remove pinned topics from RSS?

(Justin Haglund) #1

I know from reading other RSS-related posts that you’re not big on providing RSS support - that’s fine. The RSS support that’s already built in is acceptable for most, I think.

If I could make one small request, what would be useful to me, and to those of us that use the RSS support built into Discourse as a way to integrate it with other applications, would be an option to prevent pinned topics from being pinned in RSS.

Let me provide an example: we develop a software application that has a “Community” section which displays the most recent topics. We pull latest.rss from Discourse and simply parse this to look pretty in the application itself. It works great, aside from the fact that the same pinned “Welcome” topic always appears at the top. This means that the user must always scroll down to see any new topics. This is cumbersome and does not give the appropriate attention to the new topics.

I would suggest that a checkbox be added to Settings that will tell the RSS feed generator to ignore the pin status of topics and just show them in the normal timeline of the feed.

Flatter styling now deployed
(Jeff Atwood) #2

Why don’t you just strip the pinned topics on the receiving side?

Provided the RSS has some metadata indicating the pinned topic is indeed pinned.

(Justin Haglund) #3

I wish it were that simple; however, the RSS feed does not indicate pin status, so all we really have to go by is the post date, and writing logic to determine whether a post is pinned based on post date alone can get hairy.

(Jeff Atwood) #4

The rss feed should indicate pin state, as well as closed and archived and other common topic states. That is the deeper underlying fix.

(Justin Haglund) #5

That sounds good to me, we can make that work. Thanks!

(Jeff Atwood) #6

@neil can you make sure pinned topics are either omitted from RSS or state indicated in an RSS field? Whichever is easier.

(Jeff Atwood) #7

OK @techapj can you add this to your list?

(Arpit Jalan) #8

Sent a PR for this:


Added discourse namespace in RSS feed.



(Jeff Atwood) #9

I can confirm that I see these three new fields in the RSS feeds. Sorry it took us a year to get to this @goplaycheckers!

RSS feed also validates (with a few warnings)


(Jeff Atwood) #10