diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-10 16:29:35 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-10 16:29:35 +0100 |
commit | 2af337c83905c420b2d9022ee6fd3d6ef5fd1e42 (patch) | |
tree | fa6293371d4b607e00545a552ccd8bfab465926a /server/models/account | |
parent | b9cf3fb6381f71c976fbe515f728082d90a9c437 (diff) | |
download | PeerTube-2af337c83905c420b2d9022ee6fd3d6ef5fd1e42.tar.gz PeerTube-2af337c83905c420b2d9022ee6fd3d6ef5fd1e42.tar.zst PeerTube-2af337c83905c420b2d9022ee6fd3d6ef5fd1e42.zip |
Cleanup follows of orphean actors
Diffstat (limited to 'server/models/account')
-rw-r--r-- | server/models/account/account.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/models/account/account.ts b/server/models/account/account.ts index f97519b14..1162643be 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts | |||
@@ -228,6 +228,7 @@ export class AccountModel extends Model<AccountModel> { | |||
228 | } | 228 | } |
229 | 229 | ||
230 | await ActorFollowModel.removeFollowsOf(instance.Actor.id, options.transaction) | 230 | await ActorFollowModel.removeFollowsOf(instance.Actor.id, options.transaction) |
231 | |||
231 | if (instance.isOwned()) { | 232 | if (instance.isOwned()) { |
232 | return sendDeleteActor(instance.Actor, options.transaction) | 233 | return sendDeleteActor(instance.Actor, options.transaction) |
233 | } | 234 | } |