Skip to content

Commit

Permalink
Add at-symbol prepended to mention span title (#25684)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam BC <samuel.balbirnie-cumming@xdesign.com>
  • Loading branch information
forsamori and xdesign-sambc committed Jul 3, 2023
1 parent 54a1052 commit d9a5c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/status_content.jsx
Expand Up @@ -104,7 +104,7 @@ class StatusContent extends PureComponent {

if (mention) {
link.addEventListener('click', this.onMentionClick.bind(this, mention), false);
link.setAttribute('title', mention.get('acct'));
link.setAttribute('title', `@${mention.get('acct')}`);
link.setAttribute('href', `/@${mention.get('acct')}`);
} 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);
Expand Down

0 comments on commit d9a5c1a

Please sign in to comment.