diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2024-01-16 20:18:43 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2024-01-16 20:18:43 +0100 |
commit | cfb90dc7314225c8877f2d0a332646d107d2c09e (patch) | |
tree | 27215376ac9bf65bda72c8e3067bd0edaaef7ef8 | |
parent | 43f47acd8c3f6218309f1be3890d07ccf7b5066b (diff) |
Fix linting issuesfeature-redirect
-rw-r--r-- | app/javascript/mastodon/components/status_content.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/status_content.jsx b/app/javascript/mastodon/components/status_content.jsx index ced324a10cf..1d8fdfb4861 100644 --- a/app/javascript/mastodon/components/status_content.jsx +++ b/app/javascript/mastodon/components/status_content.jsx @@ -123,7 +123,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); |