[Glitch] Add at-symbol prepended to mention span title

Port d9a5c1acfa to glitch-soc

Co-authored-by: Sam BC <samuel.balbirnie-cumming@xdesign.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/62/head^2
forsamori 2023-07-03 21:58:10 +01:00 committed by Claire
parent 0a5271629c
commit ac74374311
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class StatusContent extends PureComponent {
if (mention) { if (mention) {
link.addEventListener('click', this.onMentionClick.bind(this, mention), false); link.addEventListener('click', this.onMentionClick.bind(this, mention), false);
link.setAttribute('title', mention.get('acct')); link.setAttribute('title', `@${mention.get('acct')}`);
if (rewriteMentions !== 'no') { if (rewriteMentions !== 'no') {
while (link.firstChild) link.removeChild(link.firstChild); while (link.firstChild) link.removeChild(link.firstChild);
link.appendChild(document.createTextNode('@')); link.appendChild(document.createTextNode('@'));