mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Correctly fix auto follows
This commit is contained in:
parent
1c5fbed209
commit
2db48acc46
1 changed files with 3 additions and 1 deletions
|
@ -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 })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue