main
Bob Mottram 2023-12-09 19:09:29 +00:00
parent 6a9cff243d
commit 76157e2e1f
1 changed files with 3 additions and 5 deletions

View File

@ -3473,11 +3473,9 @@ def is_reply(post_json_object: {}, actor: str) -> bool:
return False
if post_json_object['object'].get('moderationStatus'):
return False
if post_json_object['object']['type'] != 'Note' and \
post_json_object['object']['type'] != 'Page' and \
post_json_object['object']['type'] != 'EncryptedMessage' and \
post_json_object['object']['type'] != 'ChatMessage' and \
post_json_object['object']['type'] != 'Article':
if post_json_object['object']['type'] not in ('Note', 'Page',
'EncryptedMessage',
'ChatMessage', 'Article'):
return False
if post_json_object['object'].get('inReplyTo'):
if isinstance(post_json_object['object']['inReplyTo'], str):