From e29fe0a07920f4414e926b65f1868dbcb327ff5c Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 15 Nov 2022 23:07:10 +0100 Subject: [PATCH] Fix DM admin page showing deleted objects --- app/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin.py b/app/admin.py index 85a0bc2..39cc863 100644 --- a/app/admin.py +++ b/app/admin.py @@ -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) )