ActivityPub-federated video streaming platform using P2P directly in your web browser
Correctly fix auto follows
Chocobozzz2db48acc4630
diff --git a/server/lib/activitypub/process/process-follow.ts b/server/lib/activitypub/process/process-follow.tsindex 0b98d4af2b..db7fb85684 100644--- a/server/lib/activitypub/process/process-follow.ts+++ b/server/lib/activitypub/process/process-follow.ts@@ -59,7 +59,9 @@ async function processFollow (byActor: MActorSignature, targetActorURL: string)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'await actorFollow.save({ transaction: t })}