Less indentation

main
Bob Mottram 2020-12-01 10:15:26 +00:00
parent 67b024e128
commit aea95f131f
1 changed files with 31 additions and 25 deletions

View File

@ -376,11 +376,13 @@ def getAnnounceIconHtml(nickname: str, domainFull: str,
if not isPublicRepeat:
announceLink = 'repeatprivate'
announceTitle = translate['Repeat this post']
if announcedByPerson(postJsonObject, nickname, domainFull):
announceIcon = 'repeat.png'
if not isPublicRepeat:
announceLink = 'unrepeatprivate'
announceTitle = translate['Undo the repeat']
announceStr = \
' <a class="imageAnchor" href="/users/' + \
nickname + '?' + announceLink + \
@ -388,6 +390,7 @@ def getAnnounceIconHtml(nickname: str, domainFull: str,
'?actor=' + postJsonObject['actor'] + \
'?bm=' + timelinePostBookmark + \
'?tl=' + boxName + '" title="' + announceTitle + '">\n'
announceStr += \
' ' + \
'<img loading="lazy" title="' + translate['Repeat this post'] + \
@ -474,7 +477,10 @@ def getBookmarkIconHtml(nickname: str, domainFull: str,
"""Returns html for bookmark icon/button
"""
bookmarkStr = ''
if not isModerationPost:
if isModerationPost:
return bookmarkStr
bookmarkIcon = 'bookmark_inactive.png'
bookmarkLink = 'bookmark'
bookmarkTitle = translate['Bookmark this post']