Test without repeat

merge-requests/30/head
Bob Mottram 2021-07-21 21:38:35 +01:00
parent 0286294931
commit 717411fe7b
1 changed files with 6 additions and 7 deletions

View File

@ -827,6 +827,7 @@ def _getPostTitleAnnounceHtml(baseDir: str,
if not announceAvatarUrl: if not announceAvatarUrl:
announceAvatarUrl = '' announceAvatarUrl = ''
idx = 'Show options for this person' idx = 'Show options for this person'
if '/users/news/' not in announceAvatarUrl: if '/users/news/' not in announceAvatarUrl:
replyAvatarImageInPost = \ replyAvatarImageInPost = \
@ -835,10 +836,8 @@ def _getPostTitleAnnounceHtml(baseDir: str,
'href="/users/' + nickname + '?options=' + \ 'href="/users/' + nickname + '?options=' + \
announceActor + ';' + str(pageNumber) + \ announceActor + ';' + str(pageNumber) + \
';' + announceAvatarUrl + messageIdStr + '">' \ ';' + announceAvatarUrl + messageIdStr + '">' \
'<img loading="lazy" src="' + \ '<img loading="lazy" src="' + announceAvatarUrl + '" ' + \
announceAvatarUrl + '" ' + \ 'title="' + translate[idx] + '" alt=" "' + avatarPosition + \
'title="' + translate[idx] + \
'" alt=" "' + avatarPosition + \
getBrokenLinkSubstitute() + '/></a>\n </div>\n' getBrokenLinkSubstitute() + '/></a>\n </div>\n'
return (titleStr, replyAvatarImageInPost, return (titleStr, replyAvatarImageInPost,
@ -1046,9 +1045,9 @@ def _getPostTitleHtml(baseDir: str,
""" """
titleStr = '' titleStr = ''
replyAvatarImageInPost = '' replyAvatarImageInPost = ''
if not showRepeatIcon: # if not showRepeatIcon:
return (titleStr, replyAvatarImageInPost, # return (titleStr, replyAvatarImageInPost,
containerClassIcons, containerClass) # containerClassIcons, containerClass)
if isAnnounced: if isAnnounced:
return _getPostTitleAnnounceHtml(baseDir, return _getPostTitleAnnounceHtml(baseDir,