projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
017fbe1
)
Manual approves followers only for the instance
author
Chocobozzz
<me@florianbigard.com>
Mon, 17 Feb 2020 13:27:29 +0000
(14:27 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 17 Feb 2020 13:27:29 +0000
(14:27 +0100)
And not for accounts or channels of the instance
server/lib/activitypub/process/process-follow.ts
patch
|
blob
|
history
diff --git
a/server/lib/activitypub/process/process-follow.ts
b/server/lib/activitypub/process/process-follow.ts
index 85f22d654ebd9611ac7cfb8a7691e3a3d7adb5e2..0b98d4af2b379558bde6b19accb3945217ef8ae5 100644
(file)
--- 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)
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 })
}