From 2919417e59f8db555368a363c5603c8466258fbe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 1 Jul 2021 21:50:18 +0100 Subject: [PATCH] Fix blog post arguments --- daemon.py | 8 +++++++- posts.py | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) 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,