Manual approves followers only for the instance

And not for accounts or channels of the instance
pull/2712/head
Chocobozzz 2020-02-17 14:27:29 +01:00
parent 017fbe1855
commit 7d233f1dd9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ async function processFollow (byActor: MActorSignature, targetActorURL: string)
transaction: t transaction: t
}) })
if (actorFollow.state !== 'accepted' && CONFIG.FOLLOWERS.INSTANCE.MANUAL_APPROVAL === false) { if (actorFollow.state !== 'accepted' && isFollowingInstance && CONFIG.FOLLOWERS.INSTANCE.MANUAL_APPROVAL === false) {
actorFollow.state = 'accepted' actorFollow.state = 'accepted'
await actorFollow.save({ transaction: t }) await actorFollow.save({ transaction: t })
} }