mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:51:08 +08:00
Follow up to 329969ea20296b74b77e8e568e63f635cefa7b3a.
This commit is contained in:
@ -69,7 +69,7 @@ module DiscourseNarrativeBot
|
||||
valid = false
|
||||
|
||||
doc.css(".mention").each do |mention|
|
||||
if mention.text.downcase == "@#{self.discobot_user.username}".downcase
|
||||
if User.normalize_username(mention.text) == "@#{self.discobot_user.username_lower}"
|
||||
valid = true
|
||||
break
|
||||
end
|
||||
|
Reference in New Issue
Block a user