FIX: Skip post validations for system revisions when author deletes topic (PR #14824)

Bug report: Topic closed without system record - bug - Discourse Meta.

Discourse allows regular users to delete their own topics, but to prevent abuse the deletion doesn’t take effect immediately and the topic is marked for deletion by closing the topic and editing it to say (topic deleted by author) (it can be changed via text customizations but this is the default copy).

If the min_first_post_length site setting is increased and becomes larger than the length of the default copy, the topic edit won’t succeed but it will get closed resulting in a confusing situation where the topic appears to be closed for no reasons.

This PR skips all validations for the edit that Discourse makes when a topic is marked for deletion by the author.


This pull request has been mentioned on Discourse Meta. There might be relevant details there: