mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
7c2786535e
commit
0fe9b2adcd
16
inbox.py
16
inbox.py
|
@ -730,14 +730,14 @@ def _personReceiveUpdate(baseDir: str,
|
|||
' ' + str(personJson))
|
||||
domainFull = getFullDomain(domain, port)
|
||||
updateDomainFull = getFullDomain(updateDomain, updatePort)
|
||||
actor = updateDomainFull + '/users/' + updateNickname
|
||||
if actor not in personJson['id']:
|
||||
actor = updateDomainFull + '/profile/' + updateNickname
|
||||
if actor not in personJson['id']:
|
||||
actor = updateDomainFull + '/channel/' + updateNickname
|
||||
if actor not in personJson['id']:
|
||||
actor = updateDomainFull + '/accounts/' + updateNickname
|
||||
if actor not in personJson['id']:
|
||||
usersPaths = ('users', 'profile', 'channel', 'accounts')
|
||||
usersStrFound = False
|
||||
for usersStr in usersPaths:
|
||||
actor = updateDomainFull + '/' + usersStr + '/' + updateNickname
|
||||
if actor in personJson['id']:
|
||||
usersStrFound = True
|
||||
break
|
||||
if not usersStrFound:
|
||||
if debug:
|
||||
print('actor: ' + actor)
|
||||
print('id: ' + personJson['id'])
|
||||
|
|
Loading…
Reference in New Issue