mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 13:18:33 +08:00
1377186d38
This is extracted from #22390. This patch introduces a scope to avoid duplication and a new method, `Chat::Channel.find_by_id_or_slug` to allow finding a channel either by its id or by its slug (or its category slug). |
||
---|---|---|
.. | ||
category_channel.rb | ||
channel_archive.rb | ||
channel.rb | ||
deleted_user.rb | ||
direct_message_channel.rb | ||
direct_message_user.rb | ||
direct_message.rb | ||
draft.rb | ||
incoming_webhook.rb | ||
mention.rb | ||
message_reaction.rb | ||
message_revision.rb | ||
message.rb | ||
reviewable_message.rb | ||
thread.rb | ||
threads_view.rb | ||
tracking_state_report.rb | ||
user_chat_channel_membership.rb | ||
user_chat_thread_membership.rb | ||
webhook_event.rb |