FEATURE: Category setting to allow unlimited first post edits by the owner of the topic (PR #12690)

This PR adds a new category setting which is a column in the categories table, allow_unlimited_owner_edits_on_first_post.

What this does is:

  • Inside the can_edit_post? method of PostGuardian, if the current user editing a post is the owner of the post and the topic’s category has allow_unlimited_owner_edits_on_first_post, then we bypass the check for LimitedEdit#edit_time_limit_expired? on that post.
  • Also, similar to wiki topics, in PostActionNotifier#after_create_post_revision we send a notification to all users watching a topic when the OP is edited in a topic with the category setting allow_unlimited_owner_edits_on_first_post enabled.

GitHub

The title of this pull request changed from “Feature/category setting unlimited op edits” to "FEATURE: Category setting to allow unlimited first post edits by the owner of the topic

this is not nullable :slight_smile: