mirror of https://gitlab.com/bashrc2/epicyon
Only accept new blog posts if they have content
parent
e13295fba6
commit
0a110e2aaa
|
@ -12396,6 +12396,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if not fields['subject']:
|
if not fields['subject']:
|
||||||
print('WARN: blog posts must have a title')
|
print('WARN: blog posts must have a title')
|
||||||
return -1
|
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 = \
|
||||||
|
|
Loading…
Reference in New Issue