diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/actor.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/lib/activitypub/actor.ts b/server/lib/activitypub/actor.ts index 9257d7d20..7f2fc3236 100644 --- a/server/lib/activitypub/actor.ts +++ b/server/lib/activitypub/actor.ts | |||
@@ -40,6 +40,11 @@ async function getOrCreateActorAndServerAndModel (activityActor: string | Activi | |||
40 | const actorUrl = getActorUrl(activityActor) | 40 | const actorUrl = getActorUrl(activityActor) |
41 | 41 | ||
42 | let actor = await ActorModel.loadByUrl(actorUrl) | 42 | let actor = await ActorModel.loadByUrl(actorUrl) |
43 | // Orphan actor (not associated to an account of channel) so recreate it | ||
44 | if (!actor.Account && !actor.VideoChannel) { | ||
45 | await actor.destroy() | ||
46 | actor = null | ||
47 | } | ||
43 | 48 | ||
44 | // We don't have this actor in our database, fetch it on remote | 49 | // We don't have this actor in our database, fetch it on remote |
45 | if (!actor) { | 50 | if (!actor) { |