From aa2128f51bbb52c8e7de3966f881d195ae9ade95 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 19 Jan 2020 21:05:02 +0000 Subject: [PATCH] Unwrapped actor update requests --- inbox.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/inbox.py b/inbox.py index e16dcfb75..230ba70ad 100644 --- a/inbox.py +++ b/inbox.py @@ -863,6 +863,21 @@ def receiveUpdate(recentPostsCache: {},session,baseDir: str, \ print('DEBUG: Question update was received') return True + if messageJson['type']=='Person': + if messageJson.get('url') and messageJson.get('id'): + print('Request to update unwrapped actor: '+messageJson['id']) + updateNickname=getNicknameFromActor(messageJson['id']) + if updateNickname: + updateDomain,updatePort=getDomainFromActor(messageJson['id']) + if personReceiveUpdate(baseDir, \ + domain,port, \ + updateNickname,updateDomain,updatePort, \ + messageJson, \ + personCache,debug): + if debug: + print('DEBUG: Unwrapped profile update was received for '+messageJson['url']) + return True + if messageJson['object']['type']=='Person' or \ messageJson['object']['type']=='Application' or \ messageJson['object']['type']=='Group' or \