StatusContent: ensure inline mentions are always LTR

This commit is contained in:
Alex Gleason 2023-10-11 12:06:35 -05:00
parent 3f7cd366a7
commit 4a81ff55f3
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -95,6 +95,7 @@ const StatusContent: React.FC<IStatusContent> = ({
if (mention) {
link.addEventListener('click', onMentionClick.bind(link, mention), false);
link.setAttribute('title', mention.acct);
link.setAttribute('dir', 'ltr');
} else if (link.textContent?.charAt(0) === '#' || (link.previousSibling?.textContent?.charAt(link.previousSibling.textContent.length - 1) === '#')) {
link.addEventListener('click', onHashtagClick.bind(link, link.text), false);
} else {