From 2112361fef5af1b246dbbeece24384ebb3c03954 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 13 Sep 2019 19:04:22 -0700 Subject: [PATCH] fix: fix case sensitivity in hashtag links (#1478) fixes #1477 --- src/routes/_components/status/StatusContent.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/_components/status/StatusContent.html b/src/routes/_components/status/StatusContent.html index e96fe087..50bf2d8e 100644 --- a/src/routes/_components/status/StatusContent.html +++ b/src/routes/_components/status/StatusContent.html @@ -121,7 +121,7 @@ // hydrate hashtag if (tags && anchor.classList.contains('hashtag')) { for (const tag of tags) { - if (anchor.getAttribute('href').endsWith(`/tags/${tag.name}`)) { + if (anchor.getAttribute('href').toLowerCase().endsWith(`/tags/${tag.name.toLowerCase()}`)) { anchor.setAttribute('href', `/tags/${tag.name}`) anchor.setAttribute('id', `status-content-link-${uuid}-${++count}`) anchor.removeAttribute('target')