mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Fix lookup for actor
This commit is contained in:
parent
0edf03c8c1
commit
9718fd4b91
1 changed files with 2 additions and 1 deletions
|
@ -194,6 +194,7 @@ 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:
|
||||||
|
if not data.has_type(ap.ACTOR_TYPES):
|
||||||
meta = _meta(data)
|
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")
|
||||||
|
|
Loading…
Reference in a new issue