mirror of https://gitlab.com/bashrc2/epicyon
External post to outbox
parent
1b0566f30d
commit
7a7f2e0e97
|
@ -884,6 +884,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.projectVersion)
|
self.server.projectVersion)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def externalPostToOutbox(self,messageJson: {},postToNickname: str) -> bool:
|
||||||
|
return self._postToOutbox(messageJson,__version__,postToNickname)
|
||||||
|
|
||||||
def _postToOutboxThread(self,messageJson: {}) -> bool:
|
def _postToOutboxThread(self,messageJson: {}) -> bool:
|
||||||
"""Creates a thread to send a post
|
"""Creates a thread to send a post
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -95,7 +95,7 @@ def updatePostSchedule(baseDir: str,handle: str,httpd,maxScheduledPosts: int) ->
|
||||||
|
|
||||||
print('Sending scheduled post '+postId)
|
print('Sending scheduled post '+postId)
|
||||||
|
|
||||||
if not httpd._postToOutbox(postJsonObject,__version__,nickname):
|
if not httpd.externalPostToOutbox(postJsonObject,nickname):
|
||||||
indexLines.remove(line)
|
indexLines.remove(line)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue