Fix lookup for actor

This commit is contained in:
Thomas Sileo 2019-10-16 23:15:40 +02:00
parent 0edf03c8c1
commit 9718fd4b91

View file

@ -194,7 +194,8 @@ def admin_lookup() -> _Response:
if request.args.get("url"): if request.args.get("url"):
data = lookup(request.args.get("url")) # type: ignore data = lookup(request.args.get("url")) # type: ignore
if data: if data:
meta = _meta(data) if not data.has_type(ap.ACTOR_TYPES):
meta = _meta(data)
if data.has_type(ap.ActivityType.QUESTION): if data.has_type(ap.ActivityType.QUESTION):
p.push(data.id, "/task/fetch_remote_question") p.push(data.id, "/task/fetch_remote_question")