From 6f7078d77c31c0d2d87a4840e5ea8660a7a0a757 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 16 Jan 2024 20:18:43 +0100 Subject: [PATCH] Fix linting issues --- app/javascript/mastodon/components/status_content.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/status_content.jsx b/app/javascript/mastodon/components/status_content.jsx index d14aff7d7a8..f155584ebfd 100644 --- a/app/javascript/mastodon/components/status_content.jsx +++ b/app/javascript/mastodon/components/status_content.jsx @@ -122,7 +122,7 @@ class StatusContent extends PureComponent { } else if (link.textContent[0] === '#' || (link.previousSibling && link.previousSibling.textContent && link.previousSibling.textContent[link.previousSibling.textContent.length - 1] === '#')) { link.addEventListener('click', this.onHashtagClick.bind(this, link.text), false); link.setAttribute('href', `/tags/${link.text.replace(/^#/, '')}`); - } else if (status.get('uri') === link.href) { + } else if (status.get('uri') === link.href) { // the link points to the source of the status. this happens e.g. with lemmy posts. // there is no use in trying to open the url on this instance as it's already opened. link.setAttribute('title', link.href);