about summary refs log tree commit diff
path: root/app/services/fetch_remote_account_service.rb
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-08-14 21:08:34 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-14 14:08:34 +0200
commit5f22c0189d52383f0226622997d8282e9f387f3b (patch)
treeae4720b84517331a9784cbd691ce940b9ddc33ec /app/services/fetch_remote_account_service.rb
parent26d26644ac217d770ad2b3f6df6966501842f18b (diff)
Add support for searching AP users (#4599)
* Add support for searching AP users

* use JsonLdHelper
Diffstat (limited to 'app/services/fetch_remote_account_service.rb')
-rw-r--r--app/services/fetch_remote_account_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/fetch_remote_account_service.rb b/app/services/fetch_remote_account_service.rb
index 41b5374b4..7c618a0b0 100644
--- a/app/services/fetch_remote_account_service.rb
+++ b/app/services/fetch_remote_account_service.rb
@@ -3,13 +3,12 @@
 class FetchRemoteAccountService < BaseService
   include AuthorExtractor
 
-  def call(url, prefetched_body = nil)
+  def call(url, prefetched_body = nil, protocol = :ostatus)
     if prefetched_body.nil?
       resource_url, body, protocol = FetchAtomService.new.call(url)
     else
       resource_url = url
       body         = prefetched_body
-      protocol     = :ostatus
     end
 
     case protocol