From f9a511984c2001d1c89a6f5fca49b2a0c707ba68 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 10 Dec 2019 16:05:07 +0000 Subject: [PATCH] Extra argument --- daemon.py | 3 +++ webinterface.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 0936d82e..18afa3ed 100644 --- a/daemon.py +++ b/daemon.py @@ -2333,6 +2333,7 @@ class PubServer(BaseHTTPRequestHandler): msg=htmlNewPost(self.server.mediaInstance, \ self.server.translate, \ self.server.baseDir, \ + self.server.httpPrefix, \ self.path,inReplyToUrl, \ replyToList, \ shareDescription, \ @@ -5121,6 +5122,7 @@ class PubServer(BaseHTTPRequestHandler): reportPath=self.path.replace('/personoptions','')+'/newdm' msg=htmlNewPost(False,self.server.translate, \ self.server.baseDir, \ + self.server.httpPrefix, \ reportPath,None, \ [optionsActor],None, \ pageNumber).encode() @@ -5162,6 +5164,7 @@ class PubServer(BaseHTTPRequestHandler): reportPath=self.path.replace('/personoptions','')+'/newreport' msg=htmlNewPost(False,self.server.translate, \ self.server.baseDir, \ + self.server.httpPrefix, \ reportPath,None,[], \ postUrl,pageNumber).encode() self._set_headers('text/html',len(msg),cookie) diff --git a/webinterface.py b/webinterface.py index c86467cd..85445a10 100644 --- a/webinterface.py +++ b/webinterface.py @@ -930,7 +930,8 @@ def htmlSuspended(baseDir: str) -> str: suspendedForm+=htmlFooter() return suspendedForm -def htmlNewPost(mediaInstance: bool,translate: {},baseDir: str, \ +def htmlNewPost(mediaInstance: bool,translate: {}, \ + baseDir: str,httpPrefix: str, \ path: str,inReplyTo: str, \ mentions: [], \ reportUrl: str,pageNumber: int) -> str: