Merge branch 'release/2.1.0' into develop

pull/2507/head
Chocobozzz 2020-02-17 15:44:53 +01:00
commit 134cf2bce9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ async function processFollow (byActor: MActorSignature, targetActorURL: string)
transaction: t transaction: t
}) })
if (actorFollow.state !== 'accepted' && isFollowingInstance && CONFIG.FOLLOWERS.INSTANCE.MANUAL_APPROVAL === false) { // Set the follow as accepted if the remote actor follows a channel or account
// Or if the instance automatically accepts followers
if (actorFollow.state !== 'accepted' && (isFollowingInstance === false || CONFIG.FOLLOWERS.INSTANCE.MANUAL_APPROVAL === false)) {
actorFollow.state = 'accepted' actorFollow.state = 'accepted'
await actorFollow.save({ transaction: t }) await actorFollow.save({ transaction: t })
} }