mirror of https://gitlab.com/bashrc2/epicyon
Only accept new blog posts if they have a title
parent
daff452122
commit
e13295fba6
|
@ -12393,6 +12393,9 @@ 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
|
||||||
# citations button on newblog screen
|
# citations button on newblog screen
|
||||||
if citationsButtonPress:
|
if citationsButtonPress:
|
||||||
messageJson = \
|
messageJson = \
|
||||||
|
|
Loading…
Reference in New Issue