forked from indymedia/epicyon
dms are not moderation posts
parent
df5e1c1086
commit
28d1869826
2
posts.py
2
posts.py
|
@ -1875,6 +1875,8 @@ def isDM(postJsonObject: {}) -> bool:
|
||||||
return False
|
return False
|
||||||
if postJsonObject['object']['type']!='Note':
|
if postJsonObject['object']['type']!='Note':
|
||||||
return False
|
return False
|
||||||
|
if postJsonObject['object'].get('moderationStatus'):
|
||||||
|
return False
|
||||||
fields=['to','cc']
|
fields=['to','cc']
|
||||||
for f in fields:
|
for f in fields:
|
||||||
if not postJsonObject['object'].get(f):
|
if not postJsonObject['object'].get(f):
|
||||||
|
|
Loading…
Reference in New Issue