mirror of https://gitlab.com/bashrc2/epicyon
Handle unwrapped posts
parent
c8de9ae6c8
commit
5b35225532
11
inbox.py
11
inbox.py
|
@ -989,10 +989,13 @@ def receiveAnnounce(session,handle: str,baseDir: str, \
|
||||||
# Try to obtain the actor for this person
|
# Try to obtain the actor for this person
|
||||||
# so that their avatar can be shown
|
# so that their avatar can be shown
|
||||||
lookupActor=None
|
lookupActor=None
|
||||||
if postJsonObject.get('object'):
|
if postJsonObject.get('attributedTo'):
|
||||||
if isinstance(postJsonObject['object'], dict):
|
lookupActor=postJsonObject['attributedTo']
|
||||||
if postJsonObject['object'].get('attributedTo'):
|
else:
|
||||||
lookupActor=postJsonObject['object']['attributedTo']
|
if postJsonObject.get('object'):
|
||||||
|
if isinstance(postJsonObject['object'], dict):
|
||||||
|
if postJsonObject['object'].get('attributedTo'):
|
||||||
|
lookupActor=postJsonObject['object']['attributedTo']
|
||||||
if lookupActor:
|
if lookupActor:
|
||||||
if '/users/' in lookupActor:
|
if '/users/' in lookupActor:
|
||||||
if '/statuses/' in lookupActor:
|
if '/statuses/' in lookupActor:
|
||||||
|
|
Loading…
Reference in New Issue