Remove activity from id

main2
Bob Mottram 2019-10-19 10:54:45 +01:00
parent 6b9069a35f
commit 455e0451c1
1 changed files with 1 additions and 1 deletions

View File

@ -1730,7 +1730,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
""" """
# 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('/','#')+'.html' cachedPostFilename=htmlPostCacheDir+'/'+postJsonObject['id'].replace('/activity','').replace('/','#')+'.html'
if os.path.isfile(cachedPostFilename): if os.path.isfile(cachedPostFilename):
postStr='' postStr=''
tries=0 tries=0