From 136ed777645a790c62e4a6d5582c061054db2d52 Mon Sep 17 00:00:00 2001 From: forsamori Date: Mon, 3 Jul 2023 21:58:10 +0100 Subject: [PATCH] [Glitch] Add at-symbol prepended to mention span title Port 7731fbbba7c326f01612b3d66a280565b3ce63c0 to glitch-soc Co-authored-by: Sam BC Signed-off-by: Claire --- app/javascript/flavours/glitch/components/status_content.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/components/status_content.jsx b/app/javascript/flavours/glitch/components/status_content.jsx index 9b1e2e0265..955bf661ca 100644 --- a/app/javascript/flavours/glitch/components/status_content.jsx +++ b/app/javascript/flavours/glitch/components/status_content.jsx @@ -163,7 +163,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')}`); if (rewriteMentions !== 'no') { while (link.firstChild) link.removeChild(link.firstChild); link.appendChild(document.createTextNode('@'));