Don't apply to blog posts

main
Bob Mottram 2020-06-12 14:19:12 +01:00
parent e3c704f8b1
commit 4a22804343
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ def labelAccusatoryPost(postJsonObject: {}, translate: {}, threshold=3):
return
if not postJsonObject['object'].get('content'):
return
if not postJsonObject['object'].get('type'):
return
if postJsonObject['object']['type'] == 'Article':
return
if postJsonObject['object'].get('inReplyTo'):
return
if not isinstance(postJsonObject['object']['content'], str):