mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
Previously, the `emoji` attribute on chat channels had no length validation, unlike `slug`, `name`, and `description`, so a channel editor could persist arbitrarily long strings through the create/update API. This change adds a `maximum: 100` length validation to `emoji` on `Chat::Channel`, rejecting oversized values with a 422 and keeping it consistent with the other channel fields. |
||
|---|---|---|
| .. | ||
| chat | ||
| concerns/chat | ||