mirror of https://gitlab.com/bashrc2/epicyon
Extra emoji within alt
parent
84a9416bb4
commit
24cd4d56f5
|
@ -388,12 +388,14 @@ def _getAnnounceIconHtml(nickname: str, domainFull: str,
|
||||||
# don't allow announce/repeat of your own posts
|
# don't allow announce/repeat of your own posts
|
||||||
announceIcon = 'repeat_inactive.png'
|
announceIcon = 'repeat_inactive.png'
|
||||||
announceLink = 'repeat'
|
announceLink = 'repeat'
|
||||||
|
announceEmoji = ''
|
||||||
if not isPublicRepeat:
|
if not isPublicRepeat:
|
||||||
announceLink = 'repeatprivate'
|
announceLink = 'repeatprivate'
|
||||||
announceTitle = translate['Repeat this post']
|
announceTitle = translate['Repeat this post']
|
||||||
|
|
||||||
if announcedByPerson(postJsonObject, nickname, domainFull):
|
if announcedByPerson(postJsonObject, nickname, domainFull):
|
||||||
announceIcon = 'repeat.png'
|
announceIcon = 'repeat.png'
|
||||||
|
announceEmoji = '🔁 '
|
||||||
if not isPublicRepeat:
|
if not isPublicRepeat:
|
||||||
announceLink = 'unrepeatprivate'
|
announceLink = 'unrepeatprivate'
|
||||||
announceTitle = translate['Undo the repeat']
|
announceTitle = translate['Undo the repeat']
|
||||||
|
@ -409,7 +411,7 @@ def _getAnnounceIconHtml(nickname: str, domainFull: str,
|
||||||
announceStr += \
|
announceStr += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<img loading="lazy" title="' + translate['Repeat this post'] + \
|
'<img loading="lazy" title="' + translate['Repeat this post'] + \
|
||||||
'" alt="' + translate['Repeat this post'] + \
|
'" alt="' + announceEmoji + translate['Repeat this post'] + \
|
||||||
' |" src="/icons/' + announceIcon + '"/></a>\n'
|
' |" src="/icons/' + announceIcon + '"/></a>\n'
|
||||||
return announceStr
|
return announceStr
|
||||||
|
|
||||||
|
@ -491,10 +493,12 @@ def _getBookmarkIconHtml(nickname: str, domainFull: str,
|
||||||
|
|
||||||
bookmarkIcon = 'bookmark_inactive.png'
|
bookmarkIcon = 'bookmark_inactive.png'
|
||||||
bookmarkLink = 'bookmark'
|
bookmarkLink = 'bookmark'
|
||||||
|
bookmarkEmoji = ''
|
||||||
bookmarkTitle = translate['Bookmark this post']
|
bookmarkTitle = translate['Bookmark this post']
|
||||||
if bookmarkedByPerson(postJsonObject, nickname, domainFull):
|
if bookmarkedByPerson(postJsonObject, nickname, domainFull):
|
||||||
bookmarkIcon = 'bookmark.png'
|
bookmarkIcon = 'bookmark.png'
|
||||||
bookmarkLink = 'unbookmark'
|
bookmarkLink = 'unbookmark'
|
||||||
|
bookmarkEmoji = '🔖 '
|
||||||
bookmarkTitle = translate['Undo the bookmark']
|
bookmarkTitle = translate['Undo the bookmark']
|
||||||
_logPostTiming(enableTimingLog, postStartTime, '12.6')
|
_logPostTiming(enableTimingLog, postStartTime, '12.6')
|
||||||
bookmarkStr = \
|
bookmarkStr = \
|
||||||
|
@ -507,7 +511,7 @@ def _getBookmarkIconHtml(nickname: str, domainFull: str,
|
||||||
bookmarkStr += \
|
bookmarkStr += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<img loading="lazy" title="' + bookmarkTitle + '" alt="' + \
|
'<img loading="lazy" title="' + bookmarkTitle + '" alt="' + \
|
||||||
bookmarkTitle + ' |" src="/icons' + \
|
bookmarkEmoji + bookmarkTitle + ' |" src="/icons' + \
|
||||||
'/' + bookmarkIcon + '"/></a>\n'
|
'/' + bookmarkIcon + '"/></a>\n'
|
||||||
return bookmarkStr
|
return bookmarkStr
|
||||||
|
|
||||||
|
@ -550,7 +554,7 @@ def _getMuteIconHtml(isMuted: bool,
|
||||||
translate['Undo mute'] + '">\n'
|
translate['Undo mute'] + '">\n'
|
||||||
muteStr += \
|
muteStr += \
|
||||||
' ' + \
|
' ' + \
|
||||||
'<img loading="lazy" alt="' + translate['Undo mute'] + \
|
'<img loading="lazy" alt="🔇 ' + translate['Undo mute'] + \
|
||||||
' |" title="' + translate['Undo mute'] + \
|
' |" title="' + translate['Undo mute'] + \
|
||||||
'" src="/icons/unmute.png"/></a>\n'
|
'" src="/icons/unmute.png"/></a>\n'
|
||||||
return muteStr
|
return muteStr
|
||||||
|
|
Loading…
Reference in New Issue