2019-03-04 08:18:23 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ActivityPub::FetchRemotePollService < BaseService
|
|
|
|
include JsonLdHelper
|
|
|
|
|
|
|
|
def call(poll, on_behalf_of = nil)
|
2019-03-11 10:49:31 +11:00
|
|
|
json = fetch_resource(poll.status.uri, true, on_behalf_of)
|
2019-07-09 11:27:35 +10:00
|
|
|
|
2019-03-22 00:24:09 +11:00
|
|
|
return unless supported_context?(json)
|
2019-07-09 11:27:35 +10:00
|
|
|
|
2022-01-20 08:37:27 +11:00
|
|
|
ActivityPub::ProcessStatusUpdateService.new.call(poll.status, json)
|
2019-03-04 08:18:23 +11:00
|
|
|
end
|
|
|
|
end
|