Opened 3 years ago
Last modified 2 years ago
You know you want it.
Why temptest thou me, satan? :)
Yeah, I want it. I'll see if I can whip something up.
Patch for RSS feed
Yes, feed for blogs is essential ;-)
With a little help from johann@browsershots.org and his SimpleBlogPlugin I implemented a simple rss feed.
My code is ugly.
See attachment.
Patch for RSS feed (less ugly version)
(In [1186]) Refs #336
(In [1189]) Refs #336
Fixed a bug, where the RSS feed was pulling the first email address found in the trac userbase, rather than the email address of the blog poster. This becomes apparent when you have multiple users posting blog messages. Before, the corresponding RSS XML <author> fields all contained the same email address -- even if each poster set a unique email address.
Specifically, the _user2email(self, user) function didn't actually map a given blog poster's username to their email address -- it simply found the first email address from the userbase.
I've attached tracblog-rss-0.3.patch, which fixes this issue. The email_map code was taken directly from Timeline.py within v0.10 of the main trac codebase. It seems the Timeline.py RSS feed implementation makes a bit more sense.
fix: RSS <author> fields now properly list email addresses from different blog posters
(In [1582])