FIX: Holiday icon on mentions with non-lowercase usernames

FIX: Holiday icon on mentions with non-lowercase usernames

Profile urls are always constructed using the lowercase username, so we need to use the lowercase username to look them up in the cooked html.

diff --git a/assets/javascripts/initializers/add-holiday-flair.js.es6 b/assets/javascripts/initializers/add-holiday-flair.js.es6
index 7ebf7fb..8a8087c 100644
--- a/assets/javascripts/initializers/add-holiday-flair.js.es6
+++ b/assets/javascripts/initializers/add-holiday-flair.js.es6
@@ -5,7 +5,7 @@ import { later, cancel } from "@ember/runloop";
 function applyFlairOnMention(element, username) {
   if (!element) return;
 
-  const href = `${Discourse.BaseUri}/u/${username}`;
+  const href = `${Discourse.BaseUri}/u/${username.toLowerCase()}`;
   const mentions = element.querySelectorAll(`a.mention[href="${href}"]`);
 
   mentions.forEach(mention => {

GitHub sha: 21ae67c8