Don't show shares on front page

This commit is contained in:
bashrc committed 2020-12-06 22:29:03 +00:00
1 parent 11458f73e4
commit 982c7e556e
1 file changed
+9 -8
+9 -8
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: