Special case for updates to followers

master
Bob Mottram 2019-08-20 22:09:56 +01:00
parent 351a21b397
commit 6fae77f138
1 changed files with 2 additions and 1 deletions

View File

@ -661,7 +661,8 @@ def postIsAddressedToFollowers(baseDir: str,
return False
toList=[]
ccList=[]
if isinstance(postJsonObject['object'], dict):
if postJsonObject['type']!='Update' and \
isinstance(postJsonObject['object'], dict):
if not postJsonObject['object'].get('to'):
return False
toList=postJsonObject['object']['to']