1
0
Fork 0

Manual approves followers only for the instance

And not for accounts or channels of the instance
This commit is contained in:
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

View file

@ -59,7 +59,7 @@ async function processFollow (byActor: MActorSignature, targetActorURL: string)
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'
await actorFollow.save({ transaction: t })
}