Sha256: a7713d43181c5622abf831d4ff5349b490c19ab687416ba821fa6d31c051a9d5

Contents?: true

Size: 274 Bytes

Versions: 4

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thredded-0.13.0 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.12.4 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.12.3 app/jobs/thredded/auto_follow_and_notify_job.rb
thredded-0.12.2 app/jobs/thredded/auto_follow_and_notify_job.rb