From 7d5b639d6453979258b0ad8dd469433eef001eaf Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 16 Dec 2020 16:46:36 +0000 Subject: [PATCH] Only show more if links exist --- webapp_moderation.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 += \ '