Profile update

master
Bob Mottram 2019-08-20 21:35:15 +01:00
parent e0d9715629
commit 61f66545a3
1 changed files with 22 additions and 13 deletions

View File

@ -1320,6 +1320,15 @@ def sendToNamedAddresses(session,baseDir: str, \
if not postJsonObject.get('object'): if not postJsonObject.get('object'):
return return
if isinstance(postJsonObject['object'], dict): if isinstance(postJsonObject['object'], dict):
isProfileUpdate=False
# for actor updates there is no 'to' within the object
if postJsonObject['object'].get('type') and postJsonObject.get('type'):
if postJsonObject['type']=='Update' and postJsonObject['object']['type']=='Person':
# use the original object, which has a 'to'
recipientsObject=postJsonObject
isProfileUpdate=True
if not isProfileUpdate:
if not postJsonObject['object'].get('to'): if not postJsonObject['object'].get('to'):
if debug: if debug:
pprint(postJsonObject) pprint(postJsonObject)