discourse/spec/requests/api
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
..
schemas FEATURE: Category setting to allow unlimited first post edits by the owner of the topic (#12690) 2021-04-14 15:54:09 +10:00
shared document user endpoints (#11894) 2021-01-29 11:27:11 -07:00
backups_spec.rb DEV: Fix flaky specs 2021-02-09 17:28:03 +01:00
categories_spec.rb DEV: Remove draft attributes from topic lists (#12525) 2021-03-30 11:42:26 -04:00
groups_spec.rb document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
invites_spec.rb DEV: Update API documentation for invites (#12360) 2021-03-11 18:19:32 +02:00
notifications_spec.rb DEV: Document notifications and tags api endpoints 2020-08-07 14:30:54 -06:00
posts_spec.rb DEV: Update api docs to deprecate target_usernames field (#12394) 2021-03-12 16:48:39 -07:00
private_messages_spec.rb DEV: Document private message api endpoints 2020-07-31 18:27:08 -06:00
search_spec.rb document api endpoints (#11958) 2021-02-03 17:12:35 -07:00
tags_spec.rb DEV: More API Doc improvements (#11849) 2021-01-26 07:38:46 -07:00
topics_spec.rb FIX: Actually error when topic timer time is in the past (#11434) 2020-12-08 11:13:45 -06:00
uploads_spec.rb DEV: More API Doc improvements (#11849) 2021-01-26 07:38:46 -07:00
users_spec.rb DEV: Document the user suspend api endpoint (#12179) 2021-02-23 05:58:22 -07:00