From a1d1ee39f79c5bd836dffa676c938c1d2c5e79ec Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Thu, 20 Aug 2020 06:12:37 -0500 Subject: [Privacy] Choose random local follower for private fetches instead of first --- app/workers/thread_resolve_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/workers') diff --git a/app/workers/thread_resolve_worker.rb b/app/workers/thread_resolve_worker.rb index e362b5b2b..7599eb784 100644 --- a/app/workers/thread_resolve_worker.rb +++ b/app/workers/thread_resolve_worker.rb @@ -8,7 +8,7 @@ class ThreadResolveWorker def perform(child_status_id, parent_url, on_behalf_of = nil) child_status = Status.find(child_status_id) - on_behalf_of = child_status.account.followers.local.first if on_behalf_of.nil? && !child_status.distributable? + on_behalf_of = child_status.account.followers.local.random.first if on_behalf_of.nil? && !child_status.distributable? parent_status = FetchRemoteStatusService.new.call(parent_url, nil, on_behalf_of) return if parent_status.nil? -- cgit