Class: ActivityPub::VoteDistributionJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- ActivityPub::VoteDistributionJob
- 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.account inboxes.each do |inbox_url| ActivityPub::DeliveryJob.perform_later( signed_payload, account.id, inbox_url ) end rescue ActiveRecord::RecordNotFound true end |