From 5d74f60ab9a45d8eff0dd251cee6605259ea8409 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 11 Apr 2019 19:24:28 +0200 Subject: [PATCH] Fix admin thread --- app.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index 92a59c6..577f9b0 100644 --- a/app.py +++ b/app.py @@ -1339,13 +1339,9 @@ def admin_lookup(): @login_required def admin_thread(): data = DB.activities.find_one( - { - "$or": [ - {"remote_id": request.args.get("oid")}, - {"activity.object.id": request.args.get("oid")}, - ] - } + {"type": ActivityType.CREATE.value, "activity.object.id": request.args.get("oid")} ) + if not data: abort(404) if data["meta"].get("deleted", False):