[MM-54730] Don't use old hardcoded rule for validating imported posts (#25823)

* don't use old hardcoded rule for validating imported posts

* fix http verb in doc

* Use client config

* Handle local mode

* E2E tests

* Enforce default if unable to use real limit

* Unit tests

* Fix tests

* Use model.PostMessageMaxRunesV2 as lower default

* Update direct post message length validation

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: streamer45 <cstcld91@gmail.com>
This commit is contained in:
Julien Tant
2024-04-19 10:45:32 -07:00
committed by GitHub
parent 389990ebe5
commit ffc08858cf
9 changed files with 404 additions and 16 deletions

View File

@@ -675,7 +675,7 @@
description: Whether to return the associated users as part of the response or not
schema:
type: boolean
default: false
default: false
responses:
"200":
description: Post list retrieval successful
@@ -967,7 +967,7 @@
Acknowledge a post that has a request for acknowledgements.
##### Permissions
Must have `read_channel` permission for the channel the post is in.<br/>
Must be logged in as the user or have `edit_other_users` permission.
@@ -1052,7 +1052,7 @@
- posts
summary: Move a post (and any posts within that post's thread)
description: >
Move a post/thread to another channel.
Move a post/thread to another channel.
THIS IS A BETA FEATURE. The API is subject to change without notice.