Sha256: 4d9558f058ed6b9cdc87a083476d5f47cd086c2e3b6f05a7e035e21dcbf63cc8

Contents?: true

Size: 304 Bytes

Versions: 14

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true

module Thredded
  class AutoFollowAndNotifyJob < ::ActiveJob::Base
    queue_as :default

    def perform(post_id)
      post = Thredded::Post.find(post_id)

      Thredded::AutofollowUsers.new(post).run
      Thredded::NotifyFollowingUsers.new(post).run
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
threddedDANIEL-0.14.5 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.14.4 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.14.3 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.14.2 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.14.1 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.14.0 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.13.8 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.13.7 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.13.6 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.13.5 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.13.4 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.13.3 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.13.2 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.13.1 app/jobs/thredded/auto_follow_and_notify_job.rb