From d0b7f981d295b26a987dff9f097c99d9f859d309 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 22 Sep 2019 15:12:51 -0700 Subject: [PATCH] fix: fix pleroma hashtag links (#1511) fixes #832 --- 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 50bf2d8e..7e70d644 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').toLowerCase().endsWith(`/tags/${tag.name.toLowerCase()}`)) { + if (anchor.getAttribute('href').toLowerCase().endsWith(`/${tag.name.toLowerCase()}`)) { anchor.setAttribute('href', `/tags/${tag.name}`) anchor.setAttribute('id', `status-content-link-${uuid}-${++count}`) anchor.removeAttribute('target')