mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
14 lines
248 B
Ruby
14 lines
248 B
Ruby
module Jobs
|
|
class PostAlert < Jobs::Base
|
|
|
|
def execute(args)
|
|
# maybe it was removed by the time we are making the post
|
|
if post = Post.find_by(id: args[:post_id])
|
|
PostAlerter.post_created(post)
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|
|
|