Moderation reports are not media items

main
Bob Mottram 2019-11-16 22:20:16 +00:00
parent d13b2511c2
commit e4c6e2d2f1
1 changed files with 2 additions and 0 deletions

View File

@ -1914,6 +1914,8 @@ def isImageMedia(session,baseDir: str,httpPrefix: str,nickname: str,domain: str,
return False
if not isinstance(postJsonObject['object'], dict):
return False
if postJsonObject['object'].get('moderationStatus'):
return False
if postJsonObject['object']['type']!='Note':
return False
if not postJsonObject['object'].get('attachment'):