From 5e6bc8a86fecf1bd2e8f751514ca834f1c7a5989 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Feb 2023 21:42:53 +0000 Subject: [PATCH] Get actor from id --- webapp_profile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp_profile.py b/webapp_profile.py index 31b78d759..32a8076cb 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -135,6 +135,9 @@ def _valid_profile_preview_post(post_json_object: {}, post_json_object = new_post_json_object if not post_json_object.get('actor'): return False, None + if isinstance(post_json_object['actor'], dict): + if post_json_object['actor'].get('id'): + post_json_object['actor'] = post_json_object['actor']['id'] if not is_announced_feed_item: if has_object_dict(post_json_object): if post_json_object['actor'] != person_url and \