Profile emoji on alt

merge-requests/30/head
Bob Mottram 2021-02-07 21:10:21 +00:00
parent 24cd4d56f5
commit 1e3ca2b622
1 changed files with 8 additions and 4 deletions

View File

@ -244,15 +244,19 @@ def _getAvatarImageHtml(showAvatarOptions: bool,
';' + str(pageNumber) + ';' + avatarUrl + messageIdStr + '">\n'
avatarLink += \
' <img loading="lazy" title="' + \
translate['Show options for this person'] + \
'" src="' + avatarUrl + '" ' + avatarPosition + \
translate['Show options for this person'] + '" ' + \
'alt="👤 ' + \
translate['Show options for this person'] + '" ' + \
'src="' + avatarUrl + '" ' + avatarPosition + \
getBrokenLinkSubstitute() + '/></a>\n'
else:
# don't link to the person options for the news account
avatarLink += \
' <img loading="lazy" title="' + \
translate['Show options for this person'] + \
'" src="' + avatarUrl + '" ' + avatarPosition + \
translate['Show options for this person'] + '" ' + \
'alt="👤 ' + \
translate['Show options for this person'] + '" ' + \
'src="' + avatarUrl + '" ' + avatarPosition + \
getBrokenLinkSubstitute() + '/>\n'
return avatarLink.strip()