From 244fdf31a89ec256e7e1e8e6115d279071c6e64c Mon Sep 17 00:00:00 2001 From: Momin Ahmad Date: Sat, 17 Jul 2021 02:02:14 +0530 Subject: [PATCH] Added alt text for user's Avatar Ex.: Momin's avatar --- qa-include/app/users.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa-include/app/users.php b/qa-include/app/users.php index 318b27885..e3e4bc490 100644 --- a/qa-include/app/users.php +++ b/qa-include/app/users.php @@ -671,6 +671,8 @@ function qa_get_user_avatar_html($flags, $email, $handle, $blobId, $width, $heig default: // NULL return null; } + + $html = str_replace('alt=""', 'alt="' . $handle . '\'s avatar"', $html); return sprintf('%s', qa_path_html('user/' . $handle), $html); }