0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/chat/app/models
Arpit Jalan 8ba8ef13d2
FIX: add missing length validation to chat channel emoji (#41465)
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.
2026-07-06 16:47:04 +05:30
..
chat FIX: add missing length validation to chat channel emoji (#41465) 2026-07-06 16:47:04 +05:30
concerns/chat DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00