about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-17 19:46:24 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:41:03 -0500
commit120683f52266900d0fede7bd67c43133bbc26bea (patch)
tree8b6558858bc3928e96d0c11217155e95ebde92a1 /app/workers
parent78d33622a5b53a983e8d37777e8e56b9e3f3c29c (diff)
[Federation] Add support for signing fetches as the participating local user in various scenarios
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/fetch_reply_worker.rb4
-rw-r--r--app/workers/thread_resolve_worker.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/workers/fetch_reply_worker.rb b/app/workers/fetch_reply_worker.rb
index f7aa25e81..1490f283c 100644
--- a/app/workers/fetch_reply_worker.rb
+++ b/app/workers/fetch_reply_worker.rb
@@ -6,7 +6,7 @@ class FetchReplyWorker
 
   sidekiq_options queue: 'pull', retry: 3
 
-  def perform(child_url)
-    FetchRemoteStatusService.new.call(child_url)
+  def perform(child_url, on_behalf_of = nil)
+    FetchRemoteStatusService.new.call(child_url, nil, on_behalf_of)
   end
 end
diff --git a/app/workers/thread_resolve_worker.rb b/app/workers/thread_resolve_worker.rb
index 8bba9ca75..6516d1bc0 100644
--- a/app/workers/thread_resolve_worker.rb
+++ b/app/workers/thread_resolve_worker.rb
@@ -6,9 +6,9 @@ class ThreadResolveWorker
 
   sidekiq_options queue: 'pull', retry: 3
 
-  def perform(child_status_id, parent_url)
+  def perform(child_status_id, parent_url, on_behalf_of = nil)
     child_status  = Status.find(child_status_id)
-    parent_status = FetchRemoteStatusService.new.call(parent_url)
+    parent_status = FetchRemoteStatusService.new.call(parent_url, nil, on_behalf_of)
 
     return if parent_status.nil?