mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
Backport of #41548 to release/2026.1. --- ## Summary Correctly validate the length of chat draft data at the service contract layer using the max_chat_draft_length site setting. This ensures that oversized payloads are rejected early in the request lifecycle before reaching the model persistence layer. ## Source - Patch Triage: https://patch.discourse.org/patch-triage/1362 Co-authored-by: discourse-patch-triage <272280883+discourse-patch-triage[bot]@users.noreply.github.com> Co-authored-by: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| components/chat | ||
| fabricators | ||
| integration | ||
| jobs | ||
| lib | ||
| mailers | ||
| models | ||
| queries/chat | ||
| requests | ||
| serializer | ||
| services | ||
| support | ||
| system | ||
| validators | ||
| plugin_helper.rb | ||
| plugin_spec.rb | ||