mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix for processing objects from Birdsite LIVE
This commit is contained in:
parent
164cd9bd00
commit
36a1a6bd9c
1 changed files with 16 additions and 17 deletions
|
@ -218,9 +218,8 @@ async def fetch_actor(
|
||||||
|
|
||||||
if save_if_not_found:
|
if save_if_not_found:
|
||||||
ap_actor = await ap.fetch(actor_id)
|
ap_actor = await ap.fetch(actor_id)
|
||||||
# Some softwares uses URL when we expect ID
|
# Some softwares uses URL when we expect ID or uses a different casing
|
||||||
if actor_id == ap_actor.get("url"):
|
# (like Birdsite LIVE) , which mean we may already have it in DB
|
||||||
# Which mean we may already have it in DB
|
|
||||||
existing_actor_by_url = (
|
existing_actor_by_url = (
|
||||||
await db_session.scalars(
|
await db_session.scalars(
|
||||||
select(models.Actor).where(
|
select(models.Actor).where(
|
||||||
|
|
Loading…
Reference in a new issue