Use User#username_lower instead.

This commit is contained in:
Guo Xiang Tan 2017-06-12 10:58:15 +09:00
parent 6e37f09b19
commit a7ed6bd9e1

View File

@ -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