about summary refs log tree commit diff
path: root/app/lib/activitypub/activity.rb
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-20 06:12:37 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:19 -0500
commita1d1ee39f79c5bd836dffa676c938c1d2c5e79ec (patch)
treefa1f5ea5f5d1ffcde4112c0b2228a899c0adf888 /app/lib/activitypub/activity.rb
parent00d24f263fe54e5f7ccf785666254232ebb07085 (diff)
[Privacy] Choose random local follower for private fetches instead of first
Diffstat (limited to 'app/lib/activitypub/activity.rb')
-rw-r--r--app/lib/activitypub/activity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb
index 9b58fabed..8a05e22cc 100644
--- a/app/lib/activitypub/activity.rb
+++ b/app/lib/activitypub/activity.rb
@@ -182,7 +182,7 @@ class ActivityPub::Activity
   end
 
   def first_local_follower
-    @account.followers.local.first
+    @account.followers.local.random.first
   end
 
   def follow_request_from_object