forked from indymedia/epicyon
Less indentation
parent
67b024e128
commit
aea95f131f
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue