mirror of https://gitlab.com/bashrc2/epicyon
Get comments enabled state
parent
b619533866
commit
0027361ec5
|
@ -5521,9 +5521,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
mentionsStr = ''
|
mentionsStr = ''
|
||||||
if fields.get('mentions'):
|
if fields.get('mentions'):
|
||||||
mentionsStr = fields['mentions'].strip() + ' '
|
mentionsStr = fields['mentions'].strip() + ' '
|
||||||
|
if not fields.get('commentsEnabled'):
|
||||||
|
commentsEnabled = False
|
||||||
|
else:
|
||||||
commentsEnabled = True
|
commentsEnabled = True
|
||||||
if 'commentsEnabled' in fields:
|
|
||||||
commentsEnabled = fields['commentsEnabled']
|
|
||||||
if postType == 'newpost':
|
if postType == 'newpost':
|
||||||
messageJson = \
|
messageJson = \
|
||||||
createPublicPost(self.server.baseDir,
|
createPublicPost(self.server.baseDir,
|
||||||
|
|
Loading…
Reference in New Issue