We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365b546 commit 25e4d6eCopy full SHA for 25e4d6e
server/lib/activitypub/actor.ts
@@ -40,6 +40,11 @@ async function getOrCreateActorAndServerAndModel (activityActor: string | Activi
40
const actorUrl = getActorUrl(activityActor)
41
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
+ }
48
49
// We don't have this actor in our database, fetch it on remote
50
if (!actor) {
0 commit comments