forked from indymedia/epicyon
Don't use cache for public only posts
parent
4d349544ed
commit
966baef1cd
|
@ -1728,6 +1728,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
showPublicOnly=False) -> str:
|
showPublicOnly=False) -> str:
|
||||||
""" Shows a single post as html
|
""" Shows a single post as html
|
||||||
"""
|
"""
|
||||||
|
if not showPublicOnly:
|
||||||
# if a cached version of the post already exists then fetch it
|
# if a cached version of the post already exists then fetch it
|
||||||
htmlPostCacheDir=baseDir+'/accounts/'+nickname+'@'+domain+'/postcache'
|
htmlPostCacheDir=baseDir+'/accounts/'+nickname+'@'+domain+'/postcache'
|
||||||
cachedPostFilename=htmlPostCacheDir+'/'+postJsonObject['id'].replace('/activity','').replace('/','#')+'.html'
|
cachedPostFilename=htmlPostCacheDir+'/'+postJsonObject['id'].replace('/activity','').replace('/','#')+'.html'
|
||||||
|
|
Loading…
Reference in New Issue