Class: ActivityPub::VoteDistributionJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/activitypub/vote_distribution_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(vote_id) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/jobs/activitypub/vote_distribution_job.rb', line 4

def perform(vote_id)
  @vote = Vote.find(vote_id)
  @voteable = vote.voteable
  @account = vote.

  inboxes.each do |inbox_url|
    ActivityPub::DeliveryJob.perform_later(
      signed_payload, .id, inbox_url
    )
  end

rescue ActiveRecord::RecordNotFound
  true
end