forked from indymedia/epicyon
External post to outbox
parent
1b0566f30d
commit
7a7f2e0e97
|
@ -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
|
||||
"""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue