DM post arguments

merge-requests/30/head
Bob Mottram 2021-07-01 22:05:22 +01:00
parent d24a517942
commit 1515ef0bc9
2 changed files with 17 additions and 8 deletions

View File

@ -13687,6 +13687,9 @@ class PubServer(BaseHTTPRequestHandler):
self.server.baseDir,
nickname,
self.server.domain)
followersOnly = True
saveToFile = False
clientToServer = False
messageJson = \
createDirectMessagePost(self.server.baseDir,
nickname,
@ -13695,7 +13698,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.httpPrefix,
mentionsStr +
fields['message'],
True, False, False,
followersOnly, saveToFile,
clientToServer,
commentsEnabled,
filename, attachmentMediaType,
fields['imageDescription'],
@ -13732,6 +13736,10 @@ class PubServer(BaseHTTPRequestHandler):
self.server.baseDir,
nickname,
self.server.domain)
followersOnly = True
saveToFile = False
clientToServer = False
commentsEnabled = False
messageJson = \
createDirectMessagePost(self.server.baseDir,
nickname,
@ -13739,7 +13747,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.port,
self.server.httpPrefix,
mentionsStr + fields['message'],
True, False, False, False,
followersOnly, saveToFile,
clientToServer, commentsEnabled,
filename, attachmentMediaType,
fields['imageDescription'],
city,

View File

@ -1747,12 +1747,12 @@ def createDirectMessagePost(baseDir: str,
commentsEnabled: bool,
attachImageFilename: str, mediaType: str,
imageDescription: str, city: str,
inReplyTo: str = None,
inReplyToAtomUri: str = None,
subject: str = None, debug: bool = False,
schedulePost: bool = False,
eventDate: str = None, eventTime: str = None,
location: str = None) -> {}:
inReplyTo: str,
inReplyToAtomUri: str,
subject: str, debug: bool,
schedulePost: bool,
eventDate: str, eventTime: str,
location: str) -> {}:
"""Direct Message post
"""
content = resolvePetnames(baseDir, nickname, domain, content)