Fix permalink for Questions

main
Thomas Sileo 2022-11-03 22:38:29 +01:00
parent 32692a7dcd
commit 0badf0bc1f
1 changed files with 6 additions and 2 deletions

View File

@ -2493,7 +2493,9 @@ async def get_replies_tree(
.where( .where(
models.InboxObject.conversation models.InboxObject.conversation
== requested_object.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.is_deleted.is_(False),
models.InboxObject.visibility.in_(allowed_visibility), models.InboxObject.visibility.in_(allowed_visibility),
) )
@ -2511,7 +2513,9 @@ async def get_replies_tree(
models.OutboxObject.conversation models.OutboxObject.conversation
== requested_object.conversation, == requested_object.conversation,
models.OutboxObject.is_deleted.is_(False), 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), models.OutboxObject.visibility.in_(allowed_visibility),
) )
.options( .options(