2019-03-03 21:18:23 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ActivityPub::FetchRemotePollService < BaseService
|
|
|
|
include JsonLdHelper
|
|
|
|
|
|
|
|
def call(poll, on_behalf_of = nil)
|
2019-03-10 23:49:31 +00:00
|
|
|
json = fetch_resource(poll.status.uri, true, on_behalf_of)
|
2019-07-09 01:27:35 +00:00
|
|
|
|
2019-03-21 13:24:09 +00:00
|
|
|
return unless supported_context?(json)
|
2019-07-09 01:27:35 +00:00
|
|
|
|
2023-09-15 17:54:32 +00:00
|
|
|
ActivityPub::ProcessStatusUpdateService.new.call(poll.status, json, json)
|
2019-03-03 21:18:23 +00:00
|
|
|
end
|
|
|
|
end
|