media timeline avoids cached html

main2
Bob Mottram 2019-10-23 12:21:02 +01:00
parent c3b1e9ef08
commit c59a80f3a7
1 changed files with 2 additions and 2 deletions

View File

@ -1705,7 +1705,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
storeToCache=True) -> str: storeToCache=True) -> str:
""" Shows a single post as html """ Shows a single post as html
""" """
if not showPublicOnly and storeToCache: if not showPublicOnly and storeToCache and boxname!='tlmedia':
postHtml= \ postHtml= \
loadIndividualPostAsHtmlFromCache(baseDir,nickname,domain, \ loadIndividualPostAsHtmlFromCache(baseDir,nickname,domain, \
postJsonObject) postJsonObject)
@ -2092,7 +2092,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
else: else:
postHtml=galleryStr postHtml=galleryStr
if not showPublicOnly and storeToCache: if not showPublicOnly and storeToCache and boxname!='tlmedia':
saveIndividualPostAsHtmlToCache(baseDir,nickname,domain, \ saveIndividualPostAsHtmlToCache(baseDir,nickname,domain, \
postJsonObject,postHtml) postJsonObject,postHtml)