From 0badf0bc1f82590bf3e0476abc7999874b25fe29 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 3 Nov 2022 22:38:29 +0100 Subject: [PATCH] Fix permalink for Questions --- app/boxes.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/boxes.py b/app/boxes.py index f885be9..ac56793 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -2493,7 +2493,9 @@ async def get_replies_tree( .where( models.InboxObject.conversation == requested_object.conversation, - models.InboxObject.ap_type.in_(["Note", "Page", "Article"]), + models.InboxObject.ap_type.in_( + ["Note", "Page", "Article", "Question"] + ), models.InboxObject.is_deleted.is_(False), models.InboxObject.visibility.in_(allowed_visibility), ) @@ -2511,7 +2513,9 @@ async def get_replies_tree( models.OutboxObject.conversation == requested_object.conversation, models.OutboxObject.is_deleted.is_(False), - models.OutboxObject.ap_type.in_(["Note", "Page", "Article"]), + models.OutboxObject.ap_type.in_( + ["Note", "Page", "Article", "Question"] + ), models.OutboxObject.visibility.in_(allowed_visibility), ) .options(