mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:38:05 +08:00
Make rubocop happy again.
This commit is contained in:
@ -193,20 +193,20 @@ class ComposerMessagesFinder
|
||||
|
||||
private
|
||||
|
||||
def educate_reply?(type)
|
||||
replying? &&
|
||||
@details[:topic_id] &&
|
||||
(@topic.present? && !@topic.private_message?) &&
|
||||
(@user.post_count >= SiteSetting.educate_until_posts) &&
|
||||
!UserHistory.exists_for_user?(@user, type, topic_id: @details[:topic_id])
|
||||
end
|
||||
def educate_reply?(type)
|
||||
replying? &&
|
||||
@details[:topic_id] &&
|
||||
(@topic.present? && !@topic.private_message?) &&
|
||||
(@user.post_count >= SiteSetting.educate_until_posts) &&
|
||||
!UserHistory.exists_for_user?(@user, type, topic_id: @details[:topic_id])
|
||||
end
|
||||
|
||||
def creating_topic?
|
||||
@details[:composer_action] == "createTopic"
|
||||
end
|
||||
def creating_topic?
|
||||
@details[:composer_action] == "createTopic"
|
||||
end
|
||||
|
||||
def replying?
|
||||
@details[:composer_action] == "reply"
|
||||
end
|
||||
def replying?
|
||||
@details[:composer_action] == "reply"
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user