Sha256: aabc7c8304f28ee72c67005322b9b977eed6c629aa2676ab1ddb0ad6fa913460
Contents?: true
Size: 359 Bytes
Versions: 24
Compression:
Stored size: 359 Bytes
Contents
# frozen_string_literal: true module Thredded class AutoFollowAndNotifyJob < ::ActiveJob::Base queue_as :default def perform(post_id) post = Thredded::Post.find_by(id: post_id) return if post.nil? || post.postable.nil? Thredded::AutofollowUsers.new(post).run Thredded::NotifyFollowingUsers.new(post).run end end end
Version data entries
24 entries across 24 versions & 1 rubygems