aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/process
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-17 14:27:29 +0100
committerChocobozzz <me@florianbigard.com>2020-02-17 14:27:29 +0100
commit7d233f1dd9c5be8d7beba7ec5b92029888e0c91c (patch)
tree3bb8e68ebdc59c029933bf2d8ca1810f994525c4 /server/lib/activitypub/process
parent017fbe1855a9b3aea601595b10e62c681fbcdb17 (diff)
downloadPeerTube-7d233f1dd9c5be8d7beba7ec5b92029888e0c91c.tar.gz
PeerTube-7d233f1dd9c5be8d7beba7ec5b92029888e0c91c.tar.zst
PeerTube-7d233f1dd9c5be8d7beba7ec5b92029888e0c91c.zip
Manual approves followers only for the instance
And not for accounts or channels of the instance
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r--server/lib/activitypub/process/process-follow.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/process/process-follow.ts b/server/lib/activitypub/process/process-follow.ts
index 85f22d654..0b98d4af2 100644
--- a/server/lib/activitypub/process/process-follow.ts
+++ b/server/lib/activitypub/process/process-follow.ts
@@ -59,7 +59,7 @@ async function processFollow (byActor: MActorSignature, targetActorURL: string)
59 transaction: t 59 transaction: t
60 }) 60 })
61 61
62 if (actorFollow.state !== 'accepted' && CONFIG.FOLLOWERS.INSTANCE.MANUAL_APPROVAL === false) { 62 if (actorFollow.state !== 'accepted' && isFollowingInstance && CONFIG.FOLLOWERS.INSTANCE.MANUAL_APPROVAL === false) {
63 actorFollow.state = 'accepted' 63 actorFollow.state = 'accepted'
64 await actorFollow.save({ transaction: t }) 64 await actorFollow.save({ transaction: t })
65 } 65 }