Design tweaks

This commit is contained in:
Thomas Sileo 2022-07-07 21:18:20 +02:00
parent c01e0aa5b9
commit f878938fff
2 changed files with 8 additions and 3 deletions

View file

@ -479,6 +479,7 @@ async def outbox_by_public_id(
.where(
models.InboxObject.ap_type == "Like",
models.InboxObject.activity_object_ap_id == maybe_object.ap_id,
models.InboxObject.is_deleted.is_(False),
)
.options(joinedload(models.InboxObject.actor))
.order_by(models.InboxObject.ap_published_at.desc())
@ -496,6 +497,7 @@ async def outbox_by_public_id(
.filter(
models.InboxObject.ap_type == "Announce",
models.InboxObject.activity_object_ap_id == maybe_object.ap_id,
models.InboxObject.is_deleted.is_(False),
)
.options(joinedload(models.InboxObject.actor))
.order_by(models.InboxObject.ap_published_at.desc())