main2
Bob Mottram 2019-09-30 20:39:48 +01:00
parent 8b809fc984
commit 2b318435b2
1 changed files with 12 additions and 7 deletions

View File

@ -1159,13 +1159,18 @@ def obtainReplyToAvatar(baseDir: str,personCache: {},postJsonObject: {}) -> None
"""Tries to obtain the actor for the person being replied to """Tries to obtain the actor for the person being replied to
so that their avatar can later be shown so that their avatar can later be shown
""" """
lookupActor=None if not postJsonObject.get('object'):
if postJsonObject.get('object'): return
if isinstance(postJsonObject['object'], dict):
if postJsonObject['object'].get('inReplyTo'): if not isinstance(postJsonObject['object'], dict):
lookupActor=postJsonObject['object']['inReplyTo'] return
if lookupActor:
getPersonFromCache(baseDir,lookupActor,personCache) if not postJsonObject['object'].get('inReplyTo'):
return
lookupActor=postJsonObject['object']['inReplyTo']
if lookupActor:
getPersonFromCache(baseDir,lookupActor,personCache)
def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
baseDir: str,httpPrefix: str,sendThreads: [], \ baseDir: str,httpPrefix: str,sendThreads: [], \