mirror of https://git.sr.ht/~tsileo/microblog.pub
Fix DM admin page showing deleted objects
This commit is contained in:
parent
c5aee435f4
commit
e29fe0a079
|
@ -439,6 +439,7 @@ async def admin_direct_messages(
|
|||
models.InboxObject.ap_context.is_not(None),
|
||||
# Skip transient object like poll relies
|
||||
models.InboxObject.is_transient.is_(False),
|
||||
models.InboxObject.is_deleted.is_(False),
|
||||
)
|
||||
.group_by(models.InboxObject.ap_context, models.InboxObject.actor_id)
|
||||
)
|
||||
|
@ -461,6 +462,7 @@ async def admin_direct_messages(
|
|||
models.OutboxObject.ap_context.is_not(None),
|
||||
# Skip transient object like poll relies
|
||||
models.OutboxObject.is_transient.is_(False),
|
||||
models.OutboxObject.is_deleted.is_(False),
|
||||
)
|
||||
.group_by(models.OutboxObject.ap_context)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue