External post to outbox

main
Bob Mottram 2020-01-12 22:07:28 +00:00
parent 1b0566f30d
commit 7a7f2e0e97
2 changed files with 4 additions and 1 deletions

View File

@ -884,6 +884,9 @@ class PubServer(BaseHTTPRequestHandler):
self.server.projectVersion)
return True
def externalPostToOutbox(self,messageJson: {},postToNickname: str) -> bool:
return self._postToOutbox(messageJson,__version__,postToNickname)
def _postToOutboxThread(self,messageJson: {}) -> bool:
"""Creates a thread to send a post
"""

View File

@ -95,7 +95,7 @@ def updatePostSchedule(baseDir: str,handle: str,httpd,maxScheduledPosts: int) ->
print('Sending scheduled post '+postId)
if not httpd._postToOutbox(postJsonObject,__version__,nickname):
if not httpd.externalPostToOutbox(postJsonObject,nickname):
indexLines.remove(line)
continue