forked from indymedia/epicyon
Tidying
parent
c1acbf0deb
commit
5c6ca46d8b
14
inbox.py
14
inbox.py
|
@ -993,16 +993,14 @@ def receiveAnnounce(session,handle: str,baseDir: str, \
|
||||||
lookupActor=postJsonObject['object']['attributedTo']
|
lookupActor=postJsonObject['object']['attributedTo']
|
||||||
if lookupActor:
|
if lookupActor:
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Obtaining actor for announce post from cache '+lookupActor)
|
print('DEBUG: Obtaining actor for announce post '+lookupActor)
|
||||||
if not getPersonFromCache(baseDir,lookupActor,personCache):
|
for tries in range(6):
|
||||||
print('DEBUG: retrieve actor for announce post '+lookupActor)
|
|
||||||
for tries in range(3):
|
|
||||||
pubKey= \
|
pubKey= \
|
||||||
getPersonPubKey(baseDir,session,lookupActor, \
|
getPersonPubKey(baseDir,session,lookupActor, \
|
||||||
personCache,debug, \
|
personCache,debug, \
|
||||||
__version__,httpPrefix,domain)
|
__version__,httpPrefix,domain)
|
||||||
if pubKey:
|
if pubKey:
|
||||||
print('DEBUG: public key: '+str(pubKey))
|
print('DEBUG: public key obtained for announce: '+str(pubKey))
|
||||||
break
|
break
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
|
@ -1193,15 +1191,13 @@ def obtainAvatarForReplyPost(session,baseDir: str,httpPrefix: str,domain: str,pe
|
||||||
if lookupActor:
|
if lookupActor:
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Obtaining actor for reply post '+lookupActor)
|
print('DEBUG: Obtaining actor for reply post '+lookupActor)
|
||||||
if not getPersonFromCache(baseDir,lookupActor,personCache):
|
for tries in range(6):
|
||||||
print('DEBUG: retrieve actor for announce post '+lookupActor)
|
|
||||||
for tries in range(3):
|
|
||||||
pubKey= \
|
pubKey= \
|
||||||
getPersonPubKey(baseDir,session,lookupActor, \
|
getPersonPubKey(baseDir,session,lookupActor, \
|
||||||
personCache,debug, \
|
personCache,debug, \
|
||||||
__version__,httpPrefix,domain)
|
__version__,httpPrefix,domain)
|
||||||
if pubKey:
|
if pubKey:
|
||||||
print('DEBUG: public key: '+str(pubKey))
|
print('DEBUG: public key obtained for reply: '+str(pubKey))
|
||||||
break
|
break
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue