mirror of https://gitlab.com/bashrc2/epicyon
Fix blog post arguments
parent
9003ae187d
commit
2919417e59
|
@ -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'],
|
||||
|
|
8
posts.py
8
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,
|
||||
|
|
Loading…
Reference in New Issue