mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-26 00:58:47 -05:00
12 lines
259 B
Ruby
12 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
|
|
|