mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 13:22:45 +08:00
Follow up to 329969ea20
.
This commit is contained in:
parent
405ba00c08
commit
c72f16d927
|
@ -69,7 +69,7 @@ module DiscourseNarrativeBot
|
||||||
valid = false
|
valid = false
|
||||||
|
|
||||||
doc.css(".mention").each do |mention|
|
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
|
valid = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user