Unwrapped actor update requests

merge-requests/6/head
Bob Mottram 2020-01-19 21:05:02 +00:00
parent e3c05562fd
commit aa2128f51b
1 changed files with 15 additions and 0 deletions

View File

@ -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 \