Moderation reports are not replies

main
Bob Mottram 2019-11-16 22:18:20 +00:00
parent 26d561d4d7
commit d13b2511c2
1 changed files with 2 additions and 0 deletions

View File

@ -1937,6 +1937,8 @@ def isReply(postJsonObject: {},actor: str) -> bool:
return False return False
if not isinstance(postJsonObject['object'], dict): if not isinstance(postJsonObject['object'], dict):
return False return False
if postJsonObject['object'].get('moderationStatus'):
return False
if postJsonObject['object']['type']!='Note': if postJsonObject['object']['type']!='Note':
return False return False
if postJsonObject['object'].get('inReplyTo'): if postJsonObject['object'].get('inReplyTo'):