diff --git a/blog.py b/blog.py index 8e8694c5..26933b70 100644 --- a/blog.py +++ b/blog.py @@ -89,7 +89,8 @@ def htmlBlogPostContent(baseDir: str,httpPrefix: str,translate: {}, \ def htmlBlogPost(baseDir: str,httpPrefix: str,translate: {}, \ - nickname: str,domainFull: str,postJsonObject: {}) -> str: + nickname: str,domain: str,domainFull: str, \ + postJsonObject: {}) -> str: """Returns a html blog post """ blogStr='' @@ -103,7 +104,7 @@ def htmlBlogPost(baseDir: str,httpPrefix: str,translate: {}, \ blogStr+= \ htmlBlogPostContent(baseDir,httpPrefix,translate, \ - nickname,domainFull,postJsonObject, \ + nickname,domain,domainFull,postJsonObject, \ None,False) return blogStr+htmlFooter() @@ -158,7 +159,7 @@ def htmlBlogPage(session, \ blogStr+= \ htmlBlogPostContent(baseDir,httpPrefix,translate, \ - nickname,domainFull,item, \ + nickname,domain,domainFull,item, \ None,True) return blogStr+htmlFooter() diff --git a/daemon.py b/daemon.py index ed752373..497f668e 100644 --- a/daemon.py +++ b/daemon.py @@ -1110,6 +1110,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.httpPrefix, \ self.server.translate, \ nickname,self.server.domain, \ + self.server.domainFull, \ postJsonObject) if msg!=None: msg=msg.encode()