Don't show shares on front page

merge-requests/8/head
Bob Mottram 2020-12-06 22:29:03 +00:00
parent 11458f73e4
commit 982c7e556e
1 changed files with 9 additions and 8 deletions

View File

@ -176,14 +176,15 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
with open(linksFilename, "r") as f:
linksList = f.readlines()
# show a number of shares
maxSharesInLeftColumn = 3
sharesList = \
getLeftColumnShares(baseDir,
httpPrefix, domainFull, nickname,
maxSharesInLeftColumn, translate)
if linksList and sharesList:
linksList += sharesList
if not frontPage:
# show a number of shares
maxSharesInLeftColumn = 3
sharesList = \
getLeftColumnShares(baseDir,
httpPrefix, domainFull, nickname,
maxSharesInLeftColumn, translate)
if linksList and sharesList:
linksList += sharesList
if linksList:
for lineStr in linksList: