mirror of https://gitlab.com/bashrc2/epicyon
Like emoji on alt
parent
b7155f1488
commit
6817244da1
|
@ -48,6 +48,7 @@ from content import getMentionsFromHtml
|
||||||
from content import switchWords
|
from content import switchWords
|
||||||
from person import isPersonSnoozed
|
from person import isPersonSnoozed
|
||||||
from announce import announcedByPerson
|
from announce import announcedByPerson
|
||||||
|
from webapp_utils import htmlHideFromScreenReader
|
||||||
from webapp_utils import getAvatarImageUrl
|
from webapp_utils import getAvatarImageUrl
|
||||||
from webapp_utils import getPersonAvatarUrl
|
from webapp_utils import getPersonAvatarUrl
|
||||||
from webapp_utils import updateAvatarImageCache
|
from webapp_utils import updateAvatarImageCache
|
||||||
|
@ -430,6 +431,7 @@ def _getLikeIconHtml(nickname: str, domainFull: str,
|
||||||
likeIcon = 'like_inactive.png'
|
likeIcon = 'like_inactive.png'
|
||||||
likeLink = 'like'
|
likeLink = 'like'
|
||||||
likeTitle = translate['Like this post']
|
likeTitle = translate['Like this post']
|
||||||
|
likeEmoji = ''
|
||||||
likeCount = noOfLikes(postJsonObject)
|
likeCount = noOfLikes(postJsonObject)
|
||||||
|
|
||||||
_logPostTiming(enableTimingLog, postStartTime, '12.1')
|
_logPostTiming(enableTimingLog, postStartTime, '12.1')
|
||||||
|
@ -447,6 +449,7 @@ def _getLikeIconHtml(nickname: str, domainFull: str,
|
||||||
likeIcon = 'like.png'
|
likeIcon = 'like.png'
|
||||||
likeLink = 'unlike'
|
likeLink = 'unlike'
|
||||||
likeTitle = translate['Undo the like']
|
likeTitle = translate['Undo the like']
|
||||||
|
likeEmoji = htmlHideFromScreenReader('👍') + ' '
|
||||||
|
|
||||||
_logPostTiming(enableTimingLog, postStartTime, '12.2')
|
_logPostTiming(enableTimingLog, postStartTime, '12.2')
|
||||||
|
|
||||||
|
@ -467,7 +470,7 @@ def _getLikeIconHtml(nickname: str, domainFull: str,
|
||||||
likeStr += \
|
likeStr += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<img loading="lazy" title="' + likeTitle + likeCountStr + \
|
'<img loading="lazy" title="' + likeTitle + likeCountStr + \
|
||||||
'" alt="' + likeTitle + \
|
'" alt="' + likeEmoji + likeTitle + \
|
||||||
' |" src="/icons/' + likeIcon + '"/></a>\n'
|
' |" src="/icons/' + likeIcon + '"/></a>\n'
|
||||||
return likeStr
|
return likeStr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue