aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/lib/activitypub/process/process-follow.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/lib/activitypub/process/process-follow.ts b/server/lib/activitypub/process/process-follow.ts
index 076ad9cf4..38d684512 100644
--- a/server/lib/activitypub/process/process-follow.ts
+++ b/server/lib/activitypub/process/process-follow.ts
@@ -69,6 +69,13 @@ async function processFollow (byActor: MActorSignature, activityId: string, targ
69 // Or if the instance automatically accepts followers 69 // Or if the instance automatically accepts followers
70 if (actorFollow.state !== 'accepted' && (isFollowingInstance === false || CONFIG.FOLLOWERS.INSTANCE.MANUAL_APPROVAL === false)) { 70 if (actorFollow.state !== 'accepted' && (isFollowingInstance === false || CONFIG.FOLLOWERS.INSTANCE.MANUAL_APPROVAL === false)) {
71 actorFollow.state = 'accepted' 71 actorFollow.state = 'accepted'
72
73 await actorFollow.save({ transaction: t })
74 }
75
76 // Before PeerTube V3 we did not save the follow ID. Try to fix these old follows
77 if (!actorFollow.url) {
78 actorFollow.url = activityId
72 await actorFollow.save({ transaction: t }) 79 await actorFollow.save({ transaction: t })
73 } 80 }
74 81