Only allow maximum of 6000 characters for chat messages when they are created or edited. A hidden setting can control this limit, 6000 is the default. There is also a migration here to truncate any existing messages to 6000 characters if the message is already over that and if the chat_messages table exists. We also set cooked_version to NULL for those messages so we can identify them for rebake. |
||
|---|---|---|
| .. | ||
| admin | ||
| api | ||
| categories_controller_spec.rb | ||
| chat_channel_controller_spec.rb | ||
| chat_controller_spec.rb | ||
| direct_messages_controller_spec.rb | ||
| email_controller_spec.rb | ||
| emojis_controller_spec.rb | ||
| incoming_chat_webhooks_controller_spec.rb | ||
| users_controller_spec.rb | ||