Only show more if links exist

merge-requests/8/head
Bob Mottram 2020-12-16 16:46:36 +00:00
parent a521713cae
commit 7d5b639d64
1 changed files with 6 additions and 4 deletions

View File

@ -98,10 +98,12 @@ def htmlAccountInfo(cssCache: {}, translate: {},
url = blockedPostJson['object']['url']
blockedPostsLinks += \
'<a href="' + url + '">' + url + '</a><br>'
blockedPostsHtml = \
getContentWarningButton('blockNumber' + str(ctr),
translate, blockedPostsLinks)
ctr += 1
blockedPostsHtml = ''
if blockedPostsLinks:
blockedPostsHtml = \
getContentWarningButton('blockNumber' + str(ctr),
translate, blockedPostsLinks)
ctr += 1
infoForm += \
'<a href="' + usersPath + '?unblockdomain=' + postDomain + \