This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-03-03 16:18:23 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ActivityPub::FetchRemotePollService < BaseService
|
|
|
|
include JsonLdHelper
|
|
|
|
|
|
|
|
def call(poll, on_behalf_of = nil)
|
2019-03-10 19:49:31 -04:00
|
|
|
json = fetch_resource(poll.status.uri, true, on_behalf_of)
|
2019-07-08 21:27:35 -04:00
|
|
|
|
2019-03-21 09:24:09 -04:00
|
|
|
return unless supported_context?(json)
|
2019-07-08 21:27:35 -04:00
|
|
|
|
2023-09-15 13:54:32 -04:00
|
|
|
ActivityPub::ProcessStatusUpdateService.new.call(poll.status, json, json)
|
2019-03-03 16:18:23 -05:00
|
|
|
end
|
|
|
|
end
|