Only show more if links exist

main
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'] url = blockedPostJson['object']['url']
blockedPostsLinks += \ blockedPostsLinks += \
'<a href="' + url + '">' + url + '</a><br>' '<a href="' + url + '">' + url + '</a><br>'
blockedPostsHtml = \ blockedPostsHtml = ''
getContentWarningButton('blockNumber' + str(ctr), if blockedPostsLinks:
translate, blockedPostsLinks) blockedPostsHtml = \
ctr += 1 getContentWarningButton('blockNumber' + str(ctr),
translate, blockedPostsLinks)
ctr += 1
infoForm += \ infoForm += \
'<a href="' + usersPath + '?unblockdomain=' + postDomain + \ '<a href="' + usersPath + '?unblockdomain=' + postDomain + \