Bob Mottram 2023-02-03 15:17:49 +00:00
commit fd9ea302fc
1 changed files with 3 additions and 1 deletions

View File

@ -3179,7 +3179,9 @@ def _valid_post_content(base_dir: str, nickname: str, domain: str,
'allow comments: ' + original_post_id)
return False
if invalid_ciphertext(message_json['object']['content']):
print('REJECT: malformed ciphertext in content')
print('REJECT: malformed ciphertext in content ' +
message_json['object']['id'] + ' ' +
message_json['object']['content'])
return False
if debug:
print('ACCEPT: post content is valid')