mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Use User#username_lower
instead.
This commit is contained in:
@ -245,7 +245,7 @@ module DiscourseNarrativeBot
|
||||
|
||||
def bot_mentioned?
|
||||
@bot_mentioned ||= PostAnalyzer.new(@post.raw, @post.topic_id).raw_mentions.include?(
|
||||
self.discobot_user.username.downcase
|
||||
self.discobot_user.username_lower
|
||||
)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user