Reject quote toots at inbox

main
Bob Mottram 2023-01-03 17:32:59 +00:00
parent 8d8582d725
commit 02e0870f33
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,8 @@ def save_post_to_inbox_queue(base_dir: str, http_prefix: str,
if has_object_dict(post_json_object): if has_object_dict(post_json_object):
if is_quote_toot(post_json_object, content_str): if is_quote_toot(post_json_object, content_str):
print('REJECT: inbox quote toot ' + str(post_json_object)) print('REJECT: inbox quote toot ' + str(post_json_object))
return None
if post_json_object['object'].get('inReplyTo'): if post_json_object['object'].get('inReplyTo'):
if isinstance(post_json_object['object']['inReplyTo'], str): if isinstance(post_json_object['object']['inReplyTo'], str):
in_reply_to = \ in_reply_to = \