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,6 +98,8 @@ def htmlAccountInfo(cssCache: {}, translate: {},
url = blockedPostJson['object']['url']
blockedPostsLinks += \
'<a href="' + url + '">' + url + '</a><br>'
blockedPostsHtml = ''
if blockedPostsLinks:
blockedPostsHtml = \
getContentWarningButton('blockNumber' + str(ctr),
translate, blockedPostsLinks)