about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-21 21:04:40 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:44:01 -0500
commit63e35bf33177b95f7ba237a7d6c7d933a900db48 (patch)
treea6ea66032dd6086f5c573789546186fde1e7ed76 /app/workers
parent43fa66fe39e03c8af4b77b4c01798bf8ca0dd4aa (diff)
[Federation] Sign requests as the first follower of the descendant post author when attempting to resolve private threads
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/thread_resolve_worker.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/workers/thread_resolve_worker.rb b/app/workers/thread_resolve_worker.rb
index 6516d1bc0..e362b5b2b 100644
--- a/app/workers/thread_resolve_worker.rb
+++ b/app/workers/thread_resolve_worker.rb
@@ -8,6 +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?
     parent_status = FetchRemoteStatusService.new.call(parent_url, nil, on_behalf_of)
 
     return if parent_status.nil?