mirror of https://gitlab.com/bashrc2/epicyon
DM post arguments
parent
d24a517942
commit
1515ef0bc9
13
daemon.py
13
daemon.py
|
@ -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,
|
||||
|
|
12
posts.py
12
posts.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue