Various tweaks about AP types
This commit is contained in:
parent
1f36348021
commit
51bfc4bd30
4 changed files with 8 additions and 2 deletions
|
@ -33,7 +33,7 @@ async def lookup(db_session: AsyncSession, query: str) -> Actor | RemoteObject:
|
|||
else:
|
||||
raise
|
||||
|
||||
if ap_obj["type"] in ap.ACTOR_TYPES:
|
||||
if ap.as_list(ap_obj["type"])[0] in ap.ACTOR_TYPES:
|
||||
actor = await fetch_actor(db_session, ap_obj["id"])
|
||||
return actor
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue