From 41ce02a620d276ec6deec85276a1192587babd75 Mon Sep 17 00:00:00 2001 From: Michael Vickers Date: Sat, 3 Oct 2020 12:08:26 +0100 Subject: [PATCH] Hide user name from screen readers The user name will be available to screen readers from the adjacent avatar's aria-label --- app/Formatter/UserMentionFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Formatter/UserMentionFormatter.php b/app/Formatter/UserMentionFormatter.php index 9ea768813..62ee69138 100644 --- a/app/Formatter/UserMentionFormatter.php +++ b/app/Formatter/UserMentionFormatter.php @@ -48,7 +48,7 @@ class UserMentionFormatter extends BaseFormatter implements FormatterInterface $html .= ' '.$this->helper->text->e($user['username']); if (! empty($user['name'])) { - $html .= ' '.$this->helper->text->e($user['name']).''; + $html .= ' '; } $result[] = array(