Details
Description
When deleting posts or discussions from a forum with RSS, no editions are made to the feed. As cron tests whether to refresh forum's RSS feed by checking the most recent post's date/time and comparing it to date/time of RSS XML file, it doesn't refresh the feed when posts/discussions are deleted, so they stay in the feed, causing confusion to users (especially by link to deleted discussions). The solution may be to force refreshing of the feed when user has deleted post or discussion, but not in the post deleting function in the library, because the system might end up refreshing the same feed many times due to recursive deleting of child posts or whole discussion.
The attached patch introduces this solution (applied with -p0).
Hi Martin
This still seems to be the case in Moodle 1.9.4+ (Build: 20090204) and your patch is for 1.9.3.
I tried to apply the patch but it fell over, which doesn't surprise me as the code seems to have changed a lot from 1.9.3 to 1.9.4.
I think it is still an issue in 1.9.5 so might want to update the "Affects Versions" setting on the post.
I took a look at your patch however and do you think it will deal with discussions that are deleted but the deleted on is neither the newest or oldest post, I was not sure?
Richard