From 71915b8c94c61b9f8aeee095c86f2ba63b0139d2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 May 2020 15:00:47 +0100 Subject: [PATCH] Comment --- blog.py | 4 ++-- daemon.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blog.py b/blog.py index aa551642..93eea75d 100644 --- a/blog.py +++ b/blog.py @@ -85,7 +85,7 @@ def noOfBlogReplies(baseDir: str, httpPrefix: str, translate: {}, def getBlogReplies(baseDir: str, httpPrefix: str, translate: {}, nickname: str, domain: str, domainFull: str, postId: str, depth=0) -> str: - """Returns the number of replies on the post + """Returns a string containing html blog posts """ if depth > 4: return '' @@ -106,7 +106,7 @@ def getBlogReplies(baseDir: str, httpPrefix: str, translate: {}, for postBox in tryPostBox: postFilename = baseDir + '/accounts/' + \ nickname + '@' + domain + '/' + postBox + '/' + \ - postId.replace('/', '#') + postId.replace('/', '#') + '.json' if os.path.isfile(postFilename): postFilename = baseDir + '/accounts/' + \ nickname + '@' + domain + \ diff --git a/daemon.py b/daemon.py index ca3f411d..694a1bb7 100644 --- a/daemon.py +++ b/daemon.py @@ -1295,7 +1295,7 @@ class PubServer(BaseHTTPRequestHandler): if blogFilename and nickname: postJsonObject = loadJson(blogFilename) if isBlogPost(postJsonObject): - msg = htmlBlogPost(True, + msg = htmlBlogPost(authorized, self.server.baseDir, self.server.httpPrefix, self.server.translate,