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,