From 5891f2ae1290a54b30683404dd45dbd5e073031a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 22 Aug 2019 18:25:12 +0100 Subject: [PATCH] Profile updates --- inbox.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/inbox.py b/inbox.py index 68cc2eebd..7726c5a7a 100644 --- a/inbox.py +++ b/inbox.py @@ -645,19 +645,20 @@ def receiveUpdate(session,baseDir: str, \ if debug: print('DEBUG: "users" missing from actor in '+messageJson['type']) return False + + if messageJson['object']['type']=='Person': + if messageJson['object'].get('url') and messageJson['object'].get('id'): + if personReceiveUpdate(baseDir,nickname,domain,port, \ + messageJson['object'], \ + personCache,debug): + if debug: + print('DEBUG: Profile update was received for '+messageJson['object']['url']) + return True + if messageJson['object'].get('capability') and messageJson['object'].get('scope'): domain,tempPort=getDomainFromActor(messageJson['object']['scope']) nickname=getNicknameFromActor(messageJson['object']['scope']) - if messageJson['object']['type']=='Person': - if messageJson['object'].get('url') and messageJson['object'].get('id'): - if personReceiveUpdate(baseDir,nickname,domain,port, \ - messageJson['object'], \ - personCache,debug): - if debug: - print('DEBUG: An update was received for '+messageJson['object']['url']) - return True - if messageJson['object']['type']=='Capability': if capabilitiesReceiveUpdate(baseDir,nickname,domain,port, messageJson['actor'], \