From fd6584844b070cfc283902aba26f2853473e83d1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Jun 2021 10:01:31 +0200 Subject: Resolve object id from actors too --- server/lib/activitypub/actors/get.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/lib/activitypub/actors') diff --git a/server/lib/activitypub/actors/get.ts b/server/lib/activitypub/actors/get.ts index 501ff74e3..d7cf2b678 100644 --- a/server/lib/activitypub/actors/get.ts +++ b/server/lib/activitypub/actors/get.ts @@ -40,6 +40,9 @@ async function getOrCreateAPActor ( const { actorObject } = await fetchRemoteActor(actorUrl) if (actorObject === undefined) throw new Error('Cannot fetch remote actor ' + actorUrl) + // actorUrl is just an alias/rediraction, so process object id instead + if (actorObject.id !== actorUrl) return getOrCreateAPActor(actorObject, 'all', recurseIfNeeded, updateCollections) + // Create the attributed to actor // In PeerTube a video channel is owned by an account let ownerActor: MActorFullActor -- cgit v1.2.3