Various tweaks about AP types

This commit is contained in:
Thomas Sileo 2022-08-13 22:37:44 +02:00
parent 1f36348021
commit 51bfc4bd30
4 changed files with 8 additions and 2 deletions

View file

@ -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: