From 9718fd4b915552ed5aecfd0f45e728d89c585cb3 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 16 Oct 2019 23:15:40 +0200 Subject: [PATCH] Fix lookup for actor --- blueprints/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blueprints/admin.py b/blueprints/admin.py index 3996c2b..72f5c2b 100644 --- a/blueprints/admin.py +++ b/blueprints/admin.py @@ -194,7 +194,8 @@ def admin_lookup() -> _Response: if request.args.get("url"): data = lookup(request.args.get("url")) # type: ignore if data: - meta = _meta(data) + if not data.has_type(ap.ACTOR_TYPES): + meta = _meta(data) if data.has_type(ap.ActivityType.QUESTION): p.push(data.id, "/task/fetch_remote_question")