mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 02:33:51 +08:00
12 lines
162 B
Ruby
12 lines
162 B
Ruby
|
module Jobs
|
||
|
class PostAlert < Jobs::Base
|
||
|
|
||
|
def execute(args)
|
||
|
post = Post.find(args[:post_id])
|
||
|
PostAlerter.post_created(post)
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
|