about summary refs log tree commit diff
path: root/app/lib
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/lib
parent78d33622a5b53a983e8d37777e8e56b9e3f3c29c (diff)
[Federation] Add support for signing fetches as the participating local user in various scenarios
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/activitypub/activity.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb
index ab946470b..cff6b569a 100644
--- a/app/lib/activitypub/activity.rb
+++ b/app/lib/activitypub/activity.rb
@@ -196,9 +196,9 @@ class ActivityPub::Activity
   def fetch_remote_original_status
     if object_uri.start_with?('http')
       return if ActivityPub::TagManager.instance.local_uri?(object_uri)
-      ActivityPub::FetchRemoteStatusService.new.call(object_uri, id: true, on_behalf_of: @account.followers.local.first)
+      ActivityPub::FetchRemoteStatusService.new.call(object_uri, id: true, on_behalf_of: signed_fetch_account)
     elsif @object['url'].present?
-      ::FetchRemoteStatusService.new.call(@object['url'])
+      ::FetchRemoteStatusService.new.call(@object['url'], nil, signed_fetch_account)
     end
   end