Put config redundancy strategies in "strategies" subkey
[oweals/peertube.git] / server / lib / activitypub / actor.ts
index 0bdb7d12eab16bd1ce40bd005fec9261c11d6925..d37a695a725dc7c3abf44d889382a9dea8b18d76 100644 (file)
@@ -78,6 +78,9 @@ async function getOrCreateActorAndServerAndModel (
     created = true
   }
 
+  if (actor.Account) actor.Account.Actor = actor
+  if (actor.VideoChannel) actor.VideoChannel.Actor = actor
+
   const { actor: actorRefreshed, refreshed } = await retryTransactionWrapper(refreshActorIfNeeded, actor, fetchType)
   if (!actorRefreshed) throw new Error('Actor ' + actorRefreshed.url + ' does not exist anymore.')