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