Don't apply to blog posts

This commit is contained in:
bashrc committed 2020-06-12 14:19:12 +01:00
1 parent e3c704f8b1
commit 4a22804343
1 file changed
+4
+4
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):