aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account/account.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-10 16:29:35 +0100
committerChocobozzz <me@florianbigard.com>2020-11-10 16:29:35 +0100
commit2af337c83905c420b2d9022ee6fd3d6ef5fd1e42 (patch)
treefa6293371d4b607e00545a552ccd8bfab465926a /server/models/account/account.ts
parentb9cf3fb6381f71c976fbe515f728082d90a9c437 (diff)
downloadPeerTube-2af337c83905c420b2d9022ee6fd3d6ef5fd1e42.tar.gz
PeerTube-2af337c83905c420b2d9022ee6fd3d6ef5fd1e42.tar.zst
PeerTube-2af337c83905c420b2d9022ee6fd3d6ef5fd1e42.zip
Cleanup follows of orphean actors
Diffstat (limited to 'server/models/account/account.ts')
-rw-r--r--server/models/account/account.ts1
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 }