Sha256: 1b4d02d8e26ff341584b831a692328e4803fa2fe4e727f20c629d8b830e8e6fd

Contents?: true

Size: 282 Bytes

Versions: 15

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true
module Thredded
  class AutoFollowAndNotifyJob < ::ActiveJob::Base
    queue_as :default

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

      AutofollowMentionedUsers.new(post).run
      NotifyFollowingUsers.new(post).run
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
thredded-0.10.1 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.10.0 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.9.4 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.9.3 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.9.2 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.9.1 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.8.4 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.8.2 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.7.0 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.6.3 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.6.2 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.6.1 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.6.0 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.5.1 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.5.0 app/jobs/thredded/auto_follow_and_notify_job.rb