Preceding line breaks

merge-requests/8/head
Bob Mottram 2020-12-16 17:24:56 +00:00
parent b5349762b4
commit f289ca3f63
2 changed files with 5 additions and 3 deletions

View File

@ -3461,8 +3461,6 @@ def getPublicPostInfo(session, baseDir: str, nickname: str, domain: str,
projectVersion, httpPrefix,
domain)
for blockedDomain, postUrlList in blockedPosts.items():
if not domainsInfo.get(blockedDomain):
continue
domainsInfo[blockedDomain] += postUrlList
return domainsInfo

View File

@ -92,9 +92,13 @@ def htmlAccountInfo(cssCache: {}, translate: {},
httpPrefix + '://' + postDomain + '">' + postDomain + '</a> '
if isBlockedDomain(baseDir, postDomain):
blockedPostsLinks = ''
urlCtr = 0
for url in blockedPostUrls:
if urlCtr > 0:
blockedPostsLinks += '<br>'
blockedPostsLinks += \
'<a href="' + url + '">' + url + '</a><br>'
'<a href="' + url + '">' + url + '</a>'
urlCtr += 1
blockedPostsHtml = ''
if blockedPostsLinks:
blockedPostsHtml = \