2015-04-20 13:34:57 -04:00
|
|
|
module Jobs
|
|
|
|
class PostAlert < Jobs::Base
|
|
|
|
|
|
|
|
def execute(args)
|
2015-05-05 20:44:45 -04:00
|
|
|
# maybe it was removed by the time we are making the post
|
2015-10-28 13:03:34 -04:00
|
|
|
post = Post.where(id: args[:post_id]).first
|
2017-06-12 03:41:39 -04:00
|
|
|
PostAlerter.post_created(post, args[:options] || {}) if post && post.topic
|
2015-04-20 13:34:57 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|