discourse/spec/requests/api/schemas/json
Martin Brennan eeaecd4fd2
FEATURE: Category setting to allow unlimited first post edits by the owner of the topic (#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, it is the first 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.

This is useful for forums where there is a Marketplace or similar category, where topics are created and then updated indefinitely by the OP rather than the OP making new topics or additional replies. In a way this acts similar to a wiki that only one person can edit.
2021-04-14 15:54:09 +10:00
..
admin_user_list_response.json api docs example (#11997) 2021-02-08 10:09:44 -07:00
admin_user_response.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
backups_create_request.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
backups_list_response.json api docs example (#11997) 2021-02-08 10:09:44 -07:00
category_create_request.json DEV: Update category api docs (#12017) 2021-02-09 06:27:23 -07:00
category_create_response.json FEATURE: Category setting to allow unlimited first post edits by the owner of the topic (#12690) 2021-04-14 15:54:09 +10:00
category_list_response.json DEV: Remove draft attributes from topic lists (#12525) 2021-03-30 11:42:26 -04:00
category_topics_response.json FEATURE: Category setting to allow unlimited first post edits by the owner of the topic (#12690) 2021-04-14 15:54:09 +10:00
category_update_response.json FEATURE: Category setting to allow unlimited first post edits by the owner of the topic (#12690) 2021-04-14 15:54:09 +10:00
group_add_members_request.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
group_add_members_response.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
group_members_response.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
group_remove_members_request.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
group_remove_members_response.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
group_response.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
groups_list_response.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
search_request.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
search_response.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
success_ok_response.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
tag_group_create_request.json
tag_group_create_response.json
topic_create_request.json DEV: Update api docs to deprecate target_usernames field (#12394) 2021-03-12 16:48:39 -07:00
topic_create_response.json DEV: Update api docs to deprecate target_usernames field (#12394) 2021-03-12 16:48:39 -07:00
upload_create_request.json
upload_create_response.json
user_actions_response.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
user_delete_request.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
user_delete_response.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
user_password_change_request.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
user_password_reset_request.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
user_password_reset_response.json document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
user_refresh_gravatar_response.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
user_suspend_request.json DEV: Document the user suspend api endpoint (#12179) 2021-02-23 05:58:22 -07:00
user_suspend_response.json DEV: Document the user suspend api endpoint (#12179) 2021-02-23 05:58:22 -07:00
user_update_avatar_request.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
user_update_email_request.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
users_public_list_response.json document user endpoints (#11894) 2021-01-29 11:27:11 -07:00