mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:24:59 +08:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:

committed by
Loïc Guitaut

parent
3b6d4c830f
commit
2a28cda15c
@ -183,7 +183,7 @@ class ComposerMessagesFinder
|
||||
def check_get_a_room(min_users_posted: 5)
|
||||
return unless @user.guardian.can_send_private_messages?
|
||||
return unless educate_reply?(:notified_about_get_a_room)
|
||||
return unless @details[:post_id].present?
|
||||
return if @details[:post_id].blank?
|
||||
return if @topic.category&.read_restricted
|
||||
|
||||
reply_to_user_id = Post.where(id: @details[:post_id]).pluck(:user_id)[0]
|
||||
|
Reference in New Issue
Block a user