mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: Discobot mention tutorial should be case insensitive.
This commit is contained in:
@ -69,7 +69,10 @@ module DiscourseNarrativeBot
|
||||
valid = false
|
||||
|
||||
doc.css(".mention").each do |mention|
|
||||
valid = true if mention.text == "@#{self.discobot_user.username}"
|
||||
if mention.text.downcase == "@#{self.discobot_user.username}".downcase
|
||||
valid = true
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
valid
|
||||
|
Reference in New Issue
Block a user