Only accept new blog posts if they have content

main
Bob Mottram 2021-02-10 13:17:19 +00:00
parent e13295fba6
commit 0a110e2aaa
1 changed files with 3 additions and 0 deletions

View File

@ -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 = \