mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 18:15:38 +08:00
Use User#username_lower
instead.
This commit is contained in:
parent
6e37f09b19
commit
a7ed6bd9e1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user