diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-05 17:54:19 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-05 17:54:19 +0100 |
commit | 262adb9791f32162340cec23e3b571655225a3da (patch) | |
tree | 16fd4f37cae785ca4105c8254022eba41948a096 /app | |
parent | eb47409036938a8d06f4f7d463e96336b2260e8b (diff) |
Fix remote hashtag linking
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/components/components/status_content.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx index 43b868fc0..67fd9cb69 100644 --- a/app/assets/javascripts/components/components/status_content.jsx +++ b/app/assets/javascripts/components/components/status_content.jsx @@ -23,7 +23,7 @@ const StatusContent = React.createClass({ if (mention) { link.addEventListener('click', this.onMentionClick.bind(this, mention), false); - } else if (link.text[0] === '#' || (link.previousSibling && link.previousSibling.text && link.previousSibling.text[link.previousSibling.text.length - 1] === '#')) { + } 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); } else { link.setAttribute('target', '_blank'); |