From 9417f38cc777cd7633f94239d312eb6dbf11d854 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 10 Jul 2022 14:29:07 +0200 Subject: [PATCH] Fix Question processing --- app/activitypub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/activitypub.py b/app/activitypub.py index ff1b14e..c82a027 100644 --- a/app/activitypub.py +++ b/app/activitypub.py @@ -217,7 +217,7 @@ def object_visibility(ap_activity: RawObject, actor: "Actor") -> VisibilityEnum: def get_actor_id(activity: RawObject) -> str: - if activity["type"] in ["Note", "Article", "Video"]: + if activity["type"] in ["Note", "Article", "Video", "Question", "Page"]: attributed_to = as_list(activity["attributedTo"]) return get_id(attributed_to[0]) else: