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') print('WARN: blog posts must have content')
return -1 return -1
# submit button on newblog screen # submit button on newblog screen
followersOnly = False
saveToFile = False
clientToServer = False
city = None
messageJson = \ messageJson = \
createBlogPost(self.server.baseDir, nickname, createBlogPost(self.server.baseDir, nickname,
self.server.domain, self.server.port, self.server.domain, self.server.port,
self.server.httpPrefix, self.server.httpPrefix,
fields['message'], fields['message'],
False, False, False, commentsEnabled, followersOnly, saveToFile,
clientToServer, commentsEnabled,
filename, attachmentMediaType, filename, attachmentMediaType,
fields['imageDescription'], fields['imageDescription'],
city,
fields['replyTo'], fields['replyTo'], fields['replyTo'], fields['replyTo'],
fields['subject'], fields['subject'],
fields['schedulePost'], fields['schedulePost'],

View File

@ -1501,10 +1501,10 @@ def createBlogPost(baseDir: str,
clientToServer: bool, commentsEnabled: bool, clientToServer: bool, commentsEnabled: bool,
attachImageFilename: str, mediaType: str, attachImageFilename: str, mediaType: str,
imageDescription: str, city: str, imageDescription: str, city: str,
inReplyTo: str = None, inReplyToAtomUri: str = None, inReplyTo: str, inReplyToAtomUri: str,
subject: str = None, schedulePost: bool = False, subject: str, schedulePost: bool,
eventDate: str = None, eventTime: str = None, eventDate: str, eventTime: str,
location: str = None) -> {}: location: str) -> {}:
blogJson = \ blogJson = \
createPublicPost(baseDir, createPublicPost(baseDir,
nickname, domain, port, httpPrefix, nickname, domain, port, httpPrefix,