From 455e0451c1e70ae8c3e3f32ed1561bb75fa76b5e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 19 Oct 2019 10:54:45 +0100 Subject: [PATCH] Remove activity from id --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index cc417e20..a70a0a50 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1730,7 +1730,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ """ # if a cached version of the post already exists then fetch it 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): postStr='' tries=0