From 9e429b495d28bee5e2f87554a2f5a3199d431704 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Mar 2020 20:03:19 +0000 Subject: [PATCH] Post cache path --- daemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index e10a690ab..dbe03482b 100644 --- a/daemon.py +++ b/daemon.py @@ -3927,7 +3927,8 @@ class PubServer(BaseHTTPRequestHandler): postJsonObject=loadJson(postFilename) if postJsonObject: cachedFilename= \ - self.server.baseDir+'/postcache/'+ \ + self.server.baseDir+'/accounts/'+ \ + nickname+'@'+self.server.domain+'/postcache/'+ \ fields['postUrl'].replace('/','#')+'.html' if os.path.isfile(cachedFilename): print('Edited blog post, removing cached html') @@ -3936,6 +3937,7 @@ class PubServer(BaseHTTPRequestHandler): except: pass postJsonObject['object']['summary']=fields['subject'] + # TODO format message postJsonObject['object']['content']=fields['message'] saveJson(postJsonObject,postFilename) print('Edited blog post, resaved '+postFilename)