diff --git a/daemon.py b/daemon.py index bc03ad37f..6db87892d 100644 --- a/daemon.py +++ b/daemon.py @@ -13420,14 +13420,20 @@ class PubServer(BaseHTTPRequestHandler): print('WARN: blog posts must have content') return -1 # submit button on newblog screen + followersOnly = False + saveToFile = False + clientToServer = False + city = None messageJson = \ createBlogPost(self.server.baseDir, nickname, self.server.domain, self.server.port, self.server.httpPrefix, fields['message'], - False, False, False, commentsEnabled, + followersOnly, saveToFile, + clientToServer, commentsEnabled, filename, attachmentMediaType, fields['imageDescription'], + city, fields['replyTo'], fields['replyTo'], fields['subject'], fields['schedulePost'], diff --git a/posts.py b/posts.py index b95374f1e..9eac447bf 100644 --- a/posts.py +++ b/posts.py @@ -1501,10 +1501,10 @@ def createBlogPost(baseDir: str, clientToServer: bool, commentsEnabled: bool, attachImageFilename: str, mediaType: str, imageDescription: str, city: str, - inReplyTo: str = None, inReplyToAtomUri: str = None, - subject: str = None, schedulePost: bool = False, - eventDate: str = None, eventTime: str = None, - location: str = None) -> {}: + inReplyTo: str, inReplyToAtomUri: str, + subject: str, schedulePost: bool, + eventDate: str, eventTime: str, + location: str) -> {}: blogJson = \ createPublicPost(baseDir, nickname, domain, port, httpPrefix,