From d112a49cc53e22c5e10f9d6229879a21ae1e9785 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Tue, 14 May 2024 15:46:11 +0200 Subject: [PATCH] FIX: Incorrect user menu title/alt (#27019) --- .../app/components/header/user-dropdown/notifications.gjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/header/user-dropdown/notifications.gjs b/app/assets/javascripts/discourse/app/components/header/user-dropdown/notifications.gjs index ed507361dad..cf6c70a1efc 100644 --- a/app/assets/javascripts/discourse/app/components/header/user-dropdown/notifications.gjs +++ b/app/assets/javascripts/discourse/app/components/header/user-dropdown/notifications.gjs @@ -18,12 +18,11 @@ export default class Notifications extends Component { avatarSize = "medium"; get avatar() { - let avatarAttrs = {}; - addExtraUserClasses(this.currentUser, avatarAttrs); + const avatarAttrs = addExtraUserClasses(this.currentUser, {}); return htmlSafe( renderAvatar(this.currentUser, { imageSize: this.avatarSize, - alt: "user.avatar.header_title", + title: i18n("user.avatar.header_title"), template: this.currentUser.avatar_template, username: this.currentUser.username, name: this.siteSettings.enable_names && this.currentUser.name,