main2
Bob Mottram 2019-10-21 13:49:16 +01:00
parent a29af6581e
commit 15e2805d69
1 changed files with 26 additions and 21 deletions

View File

@ -1287,15 +1287,20 @@ def obtainAvatarForReplyPost(session,baseDir: str,httpPrefix: str,domain: str,pe
return return
lookupActor=postJsonObject['object']['inReplyTo'] lookupActor=postJsonObject['object']['inReplyTo']
if lookupActor: if not lookupActor:
if '/users/' in lookupActor or \ return
if not ('/users/' in lookupActor or \
'/channel/' in lookupActor or \ '/channel/' in lookupActor or \
'/profile/' in lookupActor: '/profile/' in lookupActor):
return
if '/statuses/' in lookupActor: if '/statuses/' in lookupActor:
lookupActor=lookupActor.split('/statuses/')[0] lookupActor=lookupActor.split('/statuses/')[0]
if debug: if debug:
print('DEBUG: Obtaining actor for reply post '+lookupActor) print('DEBUG: Obtaining actor for reply post '+lookupActor)
for tries in range(6): for tries in range(6):
pubKey= \ pubKey= \
getPersonPubKey(baseDir,session,lookupActor, \ getPersonPubKey(baseDir,session,lookupActor, \