The discussion revolves around disabling the deletion or withdrawal of posts on Discourse after a certain time period. 1kevgriff initially requests this feature for a client, to which sam responds that it’s a reasonable request but unlikely to be implemented due to its rarity. As an alternative, sam suggests writing a plugin or archiving topics to prevent deletion.
However, the conversation shifts towards implementing a site setting to achieve this functionality. codinghorror requests specific examples of the problem being solved, which are provided by md-misko and 1kevgriff. riking suggests a review (self-)deletions older than minutes setting, but codinghorror prefers to modify the existing max_post_deletions_per_day setting to allow a value of zero.
1kevgriff offers to submit a PR for this change, and codinghorror confirms that the work is already in progress. Ultimately, Roman_Rizzi merges a PR that allows max_post_deletions_per_day to be set to zero.
I’m working with a client who wants to prevent the deletion of posts after a time period. We have a grace period enabled for editing, and I had assumed that carried over to deletion as well.
My search of meta and of the settings isn’t turning anything up. Is there something I’m missing?
Odd this is the first time I have heard this request, it does sound like a reasonable request to me, but given it is so rare I do not think it is going to find its way into the product for many years.
As it stands your 2 options are
Write a simple plugin that introduces this, would probably only be 10 lines of code. You can commission it on Marketplace
Archive topics where you want to disable deletion. End users can not withdraw content from archived topics.
This happened multiple times on our forum, usually when users are already disciplined by silencing or locking to TL0 (to prevent them from posting without review), so stricter setting for bulk deleting old posts would be appreciated.
Yeah, exactly. In our case, it’s within a day or two (granted, it’s a niche community, but deleting posts disrupts some of the conversations so my clients would like to disable that ability for non-admins).
I’m pretty sure our existing ratelimits on deletion have successfully stopped self-deletion rampages before they get too far - that was the original goal. However, there’s a really low chance that moderators actually notice the ones that did go through.
Perhaps a review (self-)deletions older than minutes setting could do this job? Note: Having an active Reviewable on the post will prevent the self-delete from completing.
Is this as simple as changing the min on max_post_deletions_per_day and max_post_deletions_per_minute to zero in site_settings.yml? If so, I’m happy to do that PR myself.