diff --git a/webapp_post.py b/webapp_post.py index 54839a42..cd41bdd8 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -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 = \ ' \n' + announceStr += \ ' ' + \ ' 100: - print('TIMING INDIV ' + boxName + ' 12.6 = ' + str(timeDiff)) - bookmarkStr = \ - ' \n' - bookmarkStr += \ - ' ' + \ - '' + \
-            bookmarkTitle + ' |\n' + + if isModerationPost: + return bookmarkStr + + bookmarkIcon = 'bookmark_inactive.png' + bookmarkLink = 'bookmark' + bookmarkTitle = translate['Bookmark this post'] + if bookmarkedByPerson(postJsonObject, nickname, domainFull): + bookmarkIcon = 'bookmark.png' + bookmarkLink = 'unbookmark' + bookmarkTitle = translate['Undo the bookmark'] + # benchmark 12.6 + if enableTimingLog: + timeDiff = int((time.time() - postStartTime) * 1000) + if timeDiff > 100: + print('TIMING INDIV ' + boxName + ' 12.6 = ' + str(timeDiff)) + bookmarkStr = \ + ' \n' + bookmarkStr += \ + ' ' + \ + '' + \
+        bookmarkTitle + ' |\n' return bookmarkStr