ActivityPub-federated video streaming platform using P2P directly in your web browser
Refresh orphan actors
Chocobozzz25e4d6ee97e9
diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.tsindex 9257d7d209..7f2fc32365 100644--- a/server/lib/activitypub/actor.ts+++ b/server/lib/activitypub/actor.ts@@ -40,6 +40,11 @@ async function getOrCreateActorAndServerAndModel (activityActor: string | Activiconst actorUrl = getActorUrl(activityActor)let actor = await ActorModel.loadByUrl(actorUrl)+ // Orphan actor (not associated to an account of channel) so recreate it+ if (!actor.Account && !actor.VideoChannel) {+ await actor.destroy()+ actor = null+ }// We don't have this actor in our database, fetch it on remoteif (!actor) {