Design tweaks
This commit is contained in:
parent
c01e0aa5b9
commit
f878938fff
2 changed files with 8 additions and 3 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue