You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
323 B

  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::ProcessPollService.new.call(poll, json)
  8. end
  9. end