In certain cases, like when `SiteSetting.slug_generation_method` is set to `none` with certain locales, the autogenerated chat channel slugs will end up blank. This was causing errors in unrelated jobs calling `update!` on the channel. Instead, we should just copy Category behaviour, which does not error if the autogenerated slug ends up blank. We already allow for this with chat channel URLs, using `-` in place of the missing slug. |
||
|---|---|---|
| .. | ||
| concerns | ||
| category_channel.rb | ||
| chat_channel_archive.rb | ||
| chat_channel.rb | ||
| chat_draft.rb | ||
| chat_mention.rb | ||
| chat_message_reaction.rb | ||
| chat_message_revision.rb | ||
| chat_message.rb | ||
| chat_upload.rb | ||
| chat_view.rb | ||
| chat_webhook_event.rb | ||
| deleted_chat_user.rb | ||
| direct_message_channel.rb | ||
| direct_message_user.rb | ||
| direct_message.rb | ||
| incoming_chat_webhook.rb | ||
| reviewable_chat_message.rb | ||
| user_chat_channel_membership.rb | ||