forked from forks/microblog.pub
Fix permalink for Questions
This commit is contained in:
parent
32692a7dcd
commit
0badf0bc1f
1 changed files with 6 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue