logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: eb47409036938a8d06f4f7d463e96336b2260e8b
parent: a698b767c175e7ca59122da11412660a22519067
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Sat,  5 Nov 2016 17:48:53 +0100

Fix mistake

Diffstat:

Mapp/assets/javascripts/components/components/status_content.jsx2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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.length - 1] === '#')) { + } else if (link.text[0] === '#' || (link.previousSibling && link.previousSibling.text && link.previousSibling.text[link.previousSibling.text.length - 1] === '#')) { link.addEventListener('click', this.onHashtagClick.bind(this, link.text), false); } else { link.setAttribute('target', '_blank');