Fix blog post arguments

main
Bob Mottram 2021-07-01 21:50:18 +01:00
parent 9003ae187d
commit 2919417e59
2 changed files with 11 additions and 5 deletions

View File

@ -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'],

View File

@ -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,