about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-07-11 14:49:55 +0200
committerGitHub <noreply@github.com>2019-07-11 14:49:55 +0200
commit4e8dcc5dbbf625b7268ed10d36122de985da6bdc (patch)
treee3b89b3232dda984298fbbae826a19522c60f6bd /app/services
parenta6dc6a242fdabef2d0fdd9eb7b72ce11cbc22e3e (diff)
Add HTTP signatures to all outgoing ActivityPub GET requests (#11284)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fetch_resource_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_resource_service.rb b/app/services/fetch_resource_service.rb
index c0473f3ad..3676d899d 100644
--- a/app/services/fetch_resource_service.rb
+++ b/app/services/fetch_resource_service.rb
@@ -23,7 +23,7 @@ class FetchResourceService < BaseService
   end
 
   def perform_request(&block)
-    Request.new(:get, @url).add_headers('Accept' => ACCEPT_HEADER).perform(&block)
+    Request.new(:get, @url).add_headers('Accept' => ACCEPT_HEADER).on_behalf_of(Account.representative).perform(&block)
   end
 
   def process_response(response, terminal = false)