Merge branch 'mentions-ltr' into 'main'

StatusContent: ensure inline mentions are always LTR

See merge request soapbox-pub/soapbox!2794
This commit is contained in:
Alex Gleason 2023-10-11 18:03:08 +00:00
commit 923d0fea20

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 {