Follow up to 329969ea20296b74b77e8e568e63f635cefa7b3a.

diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb
index ca75d08..c0832fd 100644
--- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb
+++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb
@@ -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

GitHub sha: c72f16d9

1 Like