mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 19:13:44 +08:00
a02af9e6db
Only allow maximum of `50_000` characters for chat drafts. A hidden `max_chat_draft_length` setting can control this limit. A migration is also provided to delete any abusive draft in the database. The number of drafts loaded on current user has also been limited and ordered by most recent update. Note that spec files moved are not directly related to the fix. |
||
---|---|---|
.. | ||
category_channel_spec.rb | ||
category_spec.rb | ||
chat_channel_spec.rb | ||
chat_draft_spec.rb | ||
chat_message_spec.rb | ||
deleted_chat_user_spec.rb | ||
direct_message_channel_spec.rb | ||
direct_message_spec.rb | ||
reviewable_chat_message_spec.rb | ||
user_spec.rb |