From cf983ca9f33205502b38433c33f1c664c6e3d72b Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 27 Oct 2019 15:06:50 +0100 Subject: [PATCH] Fix admin profile page --- blueprints/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blueprints/admin.py b/blueprints/admin.py index f18025a..cb5a006 100644 --- a/blueprints/admin.py +++ b/blueprints/admin.py @@ -29,11 +29,12 @@ from core.activitypub import _meta from core.activitypub import post_to_outbox from core.db import find_one_activity from core.meta import by_object_id +from core.meta import by_object_visibility from core.meta import by_remote_id from core.meta import by_type -from core.meta import by_object_visibility from core.meta import follow_request_accepted from core.meta import in_outbox +from core.meta import not_deleted from core.meta import not_poll_answer from core.meta import not_undo from core.shared import MY_PERSON @@ -250,6 +251,7 @@ def admin_profile() -> _Response: q = { "meta.actor_id": actor_id, "box": "inbox", + **not_deleted(), "type": {"$in": [ap.ActivityType.CREATE.value, ap.ActivityType.ANNOUNCE.value]}, } inbox_data, older_than, newer_than = paginated_query(