mirror of https://gitlab.com/bashrc2/epicyon
Use attributedTo if available within ActorStatus
parent
139b1a4da6
commit
8b5fc1a7ef
|
@ -1115,10 +1115,13 @@ def receive_actor_status(base_dir: str, person_cache: {}, message_json: {},
|
||||||
print('DEBUG: receive_actor_status content too long ' +
|
print('DEBUG: receive_actor_status content too long ' +
|
||||||
str(len(message_json['content'])))
|
str(len(message_json['content'])))
|
||||||
return True
|
return True
|
||||||
if not has_actor(message_json, debug):
|
actor_url = None
|
||||||
print('DEBUG: receive_actor_status no actor ' +
|
# use attributedTo if available
|
||||||
str(message_json))
|
if message_json.get('attributedTo'):
|
||||||
return True
|
actor_url = get_attributed_to(message_json['attributedTo'])
|
||||||
|
if not actor_url:
|
||||||
|
# if not then try to find the actor
|
||||||
|
if has_actor(message_json, debug):
|
||||||
actor_url = get_actor_from_post(message_json)
|
actor_url = get_actor_from_post(message_json)
|
||||||
if not actor_url:
|
if not actor_url:
|
||||||
print('DEBUG: receive_actor_status no actor url ' +
|
print('DEBUG: receive_actor_status no actor url ' +
|
||||||
|
|
Loading…
Reference in New Issue