diff --git a/daemon.py b/daemon.py index 06b28212..36304da0 100644 --- a/daemon.py +++ b/daemon.py @@ -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 """ diff --git a/schedule.py b/schedule.py index f9166e71..25f7c512 100644 --- a/schedule.py +++ b/schedule.py @@ -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