Less indentation

merge-requests/30/head
Bob Mottram 2020-12-01 09:51:55 +00:00
parent c135486059
commit ac531e1b74
1 changed files with 43 additions and 41 deletions

View File

@ -249,7 +249,9 @@ def getReplyIconHtml(nickname: str, isPublicRepeat: bool,
"""Returns html for the reply icon/button
"""
replyStr = ''
if showIcons and commentsEnabled:
if not (showIcons and commentsEnabled):
return replyStr
# reply is permitted - create reply icon
replyToLink = postJsonObject['object']['id']
if postJsonObject['object'].get('attributedTo'):