More debug

main
Bob Mottram 2021-02-17 11:58:52 +00:00
parent 2eb08042f0
commit ac2f09c1a6
1 changed files with 3 additions and 0 deletions

View File

@ -12406,12 +12406,15 @@ class PubServer(BaseHTTPRequestHandler):
if not fields.get('message') and \
not fields.get('imageDescription') and \
not fields.get('pinToProfile'):
print('WARN: no message, image description or pin')
return -1
if fields.get('submitPost'):
if fields['submitPost'] != \
self.server.translate['Submit']:
print('WARN: no submit field ' + fields['submitPost'])
return -1
else:
print('WARN: no submitPost')
return 2
if not fields.get('imageDescription'):