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