Followers only post arguments

main
Bob Mottram 2021-07-01 21:58:16 +01:00
parent e1e545506d
commit d24a517942
2 changed files with 10 additions and 6 deletions

View File

@ -13585,6 +13585,9 @@ class PubServer(BaseHTTPRequestHandler):
self.server.baseDir,
nickname,
self.server.domain)
followersOnly = True
saveToFile = False
clientToServer = False
messageJson = \
createFollowersOnlyPost(self.server.baseDir,
nickname,
@ -13592,7 +13595,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.port,
self.server.httpPrefix,
mentionsStr + fields['message'],
True, False, False,
followersOnly, saveToFile,
clientToServer,
commentsEnabled,
filename, attachmentMediaType,
fields['imageDescription'],

View File

@ -1630,11 +1630,11 @@ def createFollowersOnlyPost(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) -> {}:
"""Followers only post
"""
domainFull = getFullDomain(domain, port)