aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/job-queue')
-rw-r--r--server/lib/job-queue/handlers/activitypub-follow.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/job-queue/handlers/activitypub-follow.ts b/server/lib/job-queue/handlers/activitypub-follow.ts
index 2c1b4f49d..393c6936c 100644
--- a/server/lib/job-queue/handlers/activitypub-follow.ts
+++ b/server/lib/job-queue/handlers/activitypub-follow.ts
@@ -58,7 +58,7 @@ function follow (fromActor: ActorModel, targetActor: ActorModel) {
58 actorFollow.ActorFollowing = targetActor 58 actorFollow.ActorFollowing = targetActor
59 actorFollow.ActorFollower = fromActor 59 actorFollow.ActorFollower = fromActor
60 60
61 // Send a notification to remote server 61 // Send a notification to remote server if our follow is not already accepted
62 await sendFollow(actorFollow) 62 if (actorFollow.state !== 'accepted') await sendFollow(actorFollow)
63 }) 63 })
64} 64}