mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 03:43:42 +01:00
Fix remote hashtag linking
This commit is contained in:
parent
eb47409036
commit
262adb9791
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue