diff --git a/webapp_moderation.py b/webapp_moderation.py index 1b9f3ea93..cb5f91c6e 100644 --- a/webapp_moderation.py +++ b/webapp_moderation.py @@ -98,10 +98,12 @@ def htmlAccountInfo(cssCache: {}, translate: {}, url = blockedPostJson['object']['url'] blockedPostsLinks += \ '' + url + '
' - blockedPostsHtml = \ - getContentWarningButton('blockNumber' + str(ctr), - translate, blockedPostsLinks) - ctr += 1 + blockedPostsHtml = '' + if blockedPostsLinks: + blockedPostsHtml = \ + getContentWarningButton('blockNumber' + str(ctr), + translate, blockedPostsLinks) + ctr += 1 infoForm += \ '