This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/jobs/regular/post_alert.rb
2015-10-28 13:03:54 -04:00

13 lines
259 B
Ruby

module Jobs
class PostAlert < Jobs::Base
def execute(args)
# maybe it was removed by the time we are making the post
post = Post.where(id: args[:post_id]).first
PostAlerter.post_created(post) if post && post.topic
end
end
end