mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
8b809fc984
commit
2b318435b2
13
inbox.py
13
inbox.py
|
@ -1159,10 +1159,15 @@ 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):
|
||||||
|
return
|
||||||
|
|
||||||
|
if not postJsonObject['object'].get('inReplyTo'):
|
||||||
|
return
|
||||||
|
|
||||||
lookupActor=postJsonObject['object']['inReplyTo']
|
lookupActor=postJsonObject['object']['inReplyTo']
|
||||||
if lookupActor:
|
if lookupActor:
|
||||||
getPersonFromCache(baseDir,lookupActor,personCache)
|
getPersonFromCache(baseDir,lookupActor,personCache)
|
||||||
|
|
Loading…
Reference in New Issue