mirror of https://gitlab.com/bashrc2/epicyon
Also check cc
parent
34f0cb47ad
commit
5d17c2d9ce
|
@ -182,11 +182,17 @@ def _postIsToYou(actor: str, postJsonObject: {}) -> bool:
|
||||||
if postJsonObject.get('to'):
|
if postJsonObject.get('to'):
|
||||||
if actor in postJsonObject['to']:
|
if actor in postJsonObject['to']:
|
||||||
toYourActor = True
|
toYourActor = True
|
||||||
|
if not toYourActor and postJsonObject.get('cc'):
|
||||||
|
if actor in postJsonObject['cc']:
|
||||||
|
toYourActor = True
|
||||||
if not toYourActor and postJsonObject.get('object'):
|
if not toYourActor and postJsonObject.get('object'):
|
||||||
if isinstance(postJsonObject['object'], dict):
|
if isinstance(postJsonObject['object'], dict):
|
||||||
if postJsonObject['object'].get('to'):
|
if postJsonObject['object'].get('to'):
|
||||||
if actor in postJsonObject['object']['to']:
|
if actor in postJsonObject['object']['to']:
|
||||||
toYourActor = True
|
toYourActor = True
|
||||||
|
if not toYourActor and postJsonObject['object'].get('cc'):
|
||||||
|
if actor in postJsonObject['object']['cc']:
|
||||||
|
toYourActor = True
|
||||||
return toYourActor
|
return toYourActor
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue