Fix lookup for actor

master
Thomas Sileo 2019-10-16 23:15:40 +02:00
rodzic 0edf03c8c1
commit 9718fd4b91
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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")