This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-03-03 22:18:23 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ActivityPub::FetchRemotePollService < BaseService
|
|
|
|
include JsonLdHelper
|
|
|
|
|
|
|
|
def call(poll, on_behalf_of = nil)
|
2019-03-11 00:49:31 +01:00
|
|
|
json = fetch_resource(poll.status.uri, true, on_behalf_of)
|
|
|
|
ActivityPub::ProcessPollService.new.call(poll, json)
|
2019-03-03 22:18:23 +01:00
|
|
|
end
|
|
|
|
end
|