merge-requests/30/head
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 return False
if post_json_object['object'].get('moderationStatus'): if post_json_object['object'].get('moderationStatus'):
return False return False
if post_json_object['object']['type'] != 'Note' and \ if post_json_object['object']['type'] not in ('Note', 'Page',
post_json_object['object']['type'] != 'Page' and \ 'EncryptedMessage',
post_json_object['object']['type'] != 'EncryptedMessage' and \ 'ChatMessage', 'Article'):
post_json_object['object']['type'] != 'ChatMessage' and \
post_json_object['object']['type'] != 'Article':
return False return False
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):