Remove sending post screen

main
Bob Mottram 2020-09-28 11:07:04 +01:00
parent 526ccad163
commit 34d26e3ce8
1 changed files with 6 additions and 7 deletions

View File

@ -9261,11 +9261,11 @@ class PubServer(BaseHTTPRequestHandler):
privateEvent = True privateEvent = True
# show a sending post screen # show a sending post screen
msg = \ # msg = \
htmlSendingPost(self.server.baseDir, # htmlSendingPost(self.server.baseDir,
self.server.translate).encode('utf-8') # self.server.translate).encode('utf-8')
self._login_headers('text/html', len(msg), callingDomain) # self._login_headers('text/html', len(msg), callingDomain)
self._write(msg) # self._write(msg)
if postType == 'newpost': if postType == 'newpost':
messageJson = \ messageJson = \
@ -9544,8 +9544,7 @@ class PubServer(BaseHTTPRequestHandler):
if messageJson: if messageJson:
if fields['schedulePost']: if fields['schedulePost']:
return 1 return 1
# if self.server.debug: print('Sending new DM to ' +
print('DEBUG: new DM to ' +
str(messageJson['object']['to'])) str(messageJson['object']['to']))
if self._postToOutbox(messageJson, __version__, nickname): if self._postToOutbox(messageJson, __version__, nickname):
populateReplies(self.server.baseDir, populateReplies(self.server.baseDir,