mirror of https://gitlab.com/bashrc2/epicyon
Check later
parent
57fcdcca38
commit
41045ba673
12
daemon.py
12
daemon.py
|
@ -12394,12 +12394,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
else:
|
else:
|
||||||
return -1
|
return -1
|
||||||
elif postType == 'newblog':
|
elif postType == 'newblog':
|
||||||
if not fields['subject']:
|
|
||||||
print('WARN: blog posts must have a title')
|
|
||||||
return -1
|
|
||||||
if not fields['message']:
|
|
||||||
print('WARN: blog posts must have content')
|
|
||||||
return -1
|
|
||||||
# citations button on newblog screen
|
# citations button on newblog screen
|
||||||
if citationsButtonPress:
|
if citationsButtonPress:
|
||||||
messageJson = \
|
messageJson = \
|
||||||
|
@ -12426,6 +12420,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
return -1
|
return -1
|
||||||
|
if not fields['subject']:
|
||||||
|
print('WARN: blog posts must have a title')
|
||||||
|
return -1
|
||||||
|
if not fields['message']:
|
||||||
|
print('WARN: blog posts must have content')
|
||||||
|
return -1
|
||||||
# submit button on newblog screen
|
# submit button on newblog screen
|
||||||
messageJson = \
|
messageJson = \
|
||||||
createBlogPost(self.server.baseDir, nickname,
|
createBlogPost(self.server.baseDir, nickname,
|
||||||
|
|
Loading…
Reference in New Issue