0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/chat/spec
discoursebot ff97b964e9
FIX: Validate the length of chat draft data [backport 2026.1] (#41553)
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>
2026-07-08 14:34:58 -05:00
..
components/chat FEATURE: separate chat emails from regular emails (#36018) 2025-11-13 16:44:07 +04:00
fabricators FEATURE: disable chat DM threads by default (#34840) 2025-09-17 16:52:13 +04:00
integration DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
jobs FIX: Skip notifications when rebaking chat messages from GitHub webhooks (#36577) 2025-12-10 01:08:36 +01:00
lib DEV: Fix a chat archive edge-case [backport 2026.1] (#40704) 2026-06-09 18:27:20 +01:00
mailers FEATURE: separate chat emails from regular emails (#36018) 2025-11-13 16:44:07 +04:00
models FEATURE: GitHub PR live status icon (#36313) 2025-12-04 21:42:44 +01:00
queries/chat DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
requests SECURITY: Removed channel member can edit and trash their own chat messages [backport 2026.1] (#41472) 2026-07-06 12:38:53 -05:00
serializer SECURITY: Chat authorization and disclosure fixes [backport 2026.1] 2026-05-19 00:26:55 +01:00
services FIX: Validate the length of chat draft data [backport 2026.1] (#41553) 2026-07-08 14:34:58 -05:00
support FEATURE: Ability to star chat channels (#36142) 2025-12-03 09:25:08 -08:00
system FIX: dynamic highlighting of self mentions (#37321) 2026-01-28 14:59:48 +04:00
validators FEATURE: Add setting to prevent anonymous users from using chat (#31842) 2025-03-21 13:32:52 +03:00
plugin_helper.rb SECURITY: Restrict public chat MessageBus broadcasts to chat-eligible users [backport 2026.1] 2026-05-19 00:26:55 +01:00
plugin_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00