mirror of https://gitlab.com/bashrc2/epicyon
main
commit
fd9ea302fc
4
inbox.py
4
inbox.py
|
@ -3179,7 +3179,9 @@ def _valid_post_content(base_dir: str, nickname: str, domain: str,
|
||||||
'allow comments: ' + original_post_id)
|
'allow comments: ' + original_post_id)
|
||||||
return False
|
return False
|
||||||
if invalid_ciphertext(message_json['object']['content']):
|
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
|
return False
|
||||||
if debug:
|
if debug:
|
||||||
print('ACCEPT: post content is valid')
|
print('ACCEPT: post content is valid')
|
||||||
|
|
Loading…
Reference in New Issue