diff --git a/daemon.py b/daemon.py index c230a8302..c2e1ea994 100644 --- a/daemon.py +++ b/daemon.py @@ -5521,9 +5521,10 @@ class PubServer(BaseHTTPRequestHandler): mentionsStr = '' if fields.get('mentions'): mentionsStr = fields['mentions'].strip() + ' ' - commentsEnabled = True - if 'commentsEnabled' in fields: - commentsEnabled = fields['commentsEnabled'] + if not fields.get('commentsEnabled'): + commentsEnabled = False + else: + commentsEnabled = True if postType == 'newpost': messageJson = \ createPublicPost(self.server.baseDir,