= Description = RSS feed does not show a diff for a new page. == Steps to reproduce == 1. Configure your RSS reader to get diffs: `http://moinmoin.wikiwikiweb.de/RecentChanges?action=rss_rc&diffs=1&unique=0` 1. Create a new page, for example a new bug page 1. The feed does not contain a diff for the new page, like the one that shows on an email notification. == Example == {{{ MoinMoinBugs/RSS does not validatehttp://moinmoin.wikiwikiweb.de/MoinMoinBugs/RSS_does_not_validate2005-11-20T14:33:12ZSelf:NirSoffer1132497192000000updatedhttp://moinmoin.wikiwikiweb.de/MoinMoinBugs/RSS_does_not_validate?action=diffhttp://moinmoin.wikiwikiweb.de/MoinMoinBugs/RSS_does_not_validate?action=info }}} == Details == This wiki. == Workaround == ## How to deal with the bug until it is fixed Here's a patch to action/rss_rc.py that adds the page content if there is no revision to diff to: {{{ if len(lines) > 20: lines = lines[:20] + ['...\n'] lines = '\n'.join(lines) - lines = wikiutil.escape(lines) - desc_text = '%s\n
\n%s\n
\n' % (desc_text, lines) + else: + lines = page.get_raw_body() + lines = wikiutil.escape(lines) + desc_text = '%s\n
\n%s\n
\n' % (desc_text, lines) break if desc_text: handler.simpleNode('description', desc_text) }}} There's still a bug: `lines = page.get_raw_body()` gives the latest revision instead of `rev`. This is incorrect if there have been more recent changes too. --TuukkaHastrup = Discussion = = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinBug