Encrypted messages treated as DMs

main
Bob Mottram 2020-08-05 13:16:15 +01:00
parent b554256a1f
commit 0f075f37e9
1 changed files with 1 additions and 0 deletions

View File

@ -2400,6 +2400,7 @@ def isDM(postJsonObject: {}) -> bool:
return False return False
if postJsonObject['object']['type'] != 'Note' and \ if postJsonObject['object']['type'] != 'Note' and \
postJsonObject['object']['type'] != 'Patch' and \ postJsonObject['object']['type'] != 'Patch' and \
postJsonObject['object']['type'] != 'EncryptedMessage' and \
postJsonObject['object']['type'] != 'Article': postJsonObject['object']['type'] != 'Article':
return False return False
if postJsonObject['object'].get('moderationStatus'): if postJsonObject['object'].get('moderationStatus'):