fetch_remote_poll_service.rb 338 B

12345678910111213
  1. # frozen_string_literal: true
  2. class ActivityPub::FetchRemotePollService < BaseService
  3. include JsonLdHelper
  4. def call(poll, on_behalf_of = nil)
  5. json = fetch_resource(poll.status.uri, true, on_behalf_of)
  6. return unless supported_context?(json)
  7. ActivityPub::ProcessStatusUpdateService.new.call(poll.status, json)
  8. end
  9. end