mirror of https://gitlab.com/bashrc2/epicyon
Profile updates
parent
323fec6794
commit
5891f2ae12
9
inbox.py
9
inbox.py
|
@ -645,9 +645,6 @@ def receiveUpdate(session,baseDir: str, \
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: "users" missing from actor in '+messageJson['type'])
|
print('DEBUG: "users" missing from actor in '+messageJson['type'])
|
||||||
return False
|
return False
|
||||||
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']['type']=='Person':
|
||||||
if messageJson['object'].get('url') and messageJson['object'].get('id'):
|
if messageJson['object'].get('url') and messageJson['object'].get('id'):
|
||||||
|
@ -655,9 +652,13 @@ def receiveUpdate(session,baseDir: str, \
|
||||||
messageJson['object'], \
|
messageJson['object'], \
|
||||||
personCache,debug):
|
personCache,debug):
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: An update was received for '+messageJson['object']['url'])
|
print('DEBUG: Profile update was received for '+messageJson['object']['url'])
|
||||||
return True
|
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']=='Capability':
|
if messageJson['object']['type']=='Capability':
|
||||||
if capabilitiesReceiveUpdate(baseDir,nickname,domain,port,
|
if capabilitiesReceiveUpdate(baseDir,nickname,domain,port,
|
||||||
messageJson['actor'], \
|
messageJson['actor'], \
|
||||||
|
|
Loading…
Reference in New Issue