diff --git a/semantic.py b/semantic.py index 1388dd2c..2cb44e3b 100644 --- a/semantic.py +++ b/semantic.py @@ -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):