dms are not moderation posts

main
Bob Mottram 2019-11-16 17:29:02 +00:00
parent df5e1c1086
commit 28d1869826
1 changed files with 2 additions and 0 deletions

View File

@ -1875,6 +1875,8 @@ def isDM(postJsonObject: {}) -> bool:
return False
if postJsonObject['object']['type']!='Note':
return False
if postJsonObject['object'].get('moderationStatus'):
return False
fields=['to','cc']
for f in fields:
if not postJsonObject['object'].get(f):