Get comments enabled state

main
Bob Mottram 2020-08-21 21:08:17 +01:00
parent b619533866
commit 0027361ec5
1 changed files with 4 additions and 3 deletions

View File

@ -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,