From 667aea18307aab5c38b7f652f67bc193cf93d28d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Jan 2020 13:02:39 +0000 Subject: [PATCH] Don't immediately post scheduled posts --- daemon.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/daemon.py b/daemon.py index ee101cebd..8eb1651d2 100644 --- a/daemon.py +++ b/daemon.py @@ -3744,6 +3744,8 @@ class PubServer(BaseHTTPRequestHandler): fields['eventDate'],fields['eventTime'], \ fields['location']) if messageJson: + if fields['schedulePost']: + return 1 self.postToNickname=nickname if self._postToOutbox(messageJson,__version__): populateReplies(self.server.baseDir, \ @@ -3770,6 +3772,8 @@ class PubServer(BaseHTTPRequestHandler): fields['eventDate'],fields['eventTime'], \ fields['location']) if messageJson: + if fields['schedulePost']: + return 1 self.postToNickname=nickname if self._postToOutbox(messageJson,__version__): populateReplies(self.server.baseDir, \ @@ -3796,6 +3800,8 @@ class PubServer(BaseHTTPRequestHandler): fields['eventDate'],fields['eventTime'], \ fields['location']) if messageJson: + if fields['schedulePost']: + return 1 self.postToNickname=nickname if self._postToOutbox(messageJson,__version__): populateReplies(self.server.baseDir, \ @@ -3826,6 +3832,8 @@ class PubServer(BaseHTTPRequestHandler): fields['eventTime'], \ fields['location']) if messageJson: + if fields['schedulePost']: + return 1 self.postToNickname=nickname if self.server.debug: print('DEBUG: new DM to '+str(messageJson['object']['to']))