0
0
Fork 0

Add support for searching AP users (#4599)

* Add support for searching AP users

* use JsonLdHelper
This commit is contained in:
Yamagishi Kazutoshi 2017-08-14 21:08:34 +09:00 committed by Eugen Rochko
parent 26d26644ac
commit 5f22c0189d
4 changed files with 30 additions and 11 deletions

View file

@ -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