mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: process_post job should update baked_at and baked_version if it rebakes the post
This commit is contained in:
parent
130974d58d
commit
8fe61c68a1
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module Jobs
|
||||||
cooking_options = args[:cooking_options] || {}
|
cooking_options = args[:cooking_options] || {}
|
||||||
cooking_options[:topic_id] = post.topic_id
|
cooking_options[:topic_id] = post.topic_id
|
||||||
recooked = post.cook(post.raw, cooking_options.symbolize_keys)
|
recooked = post.cook(post.raw, cooking_options.symbolize_keys)
|
||||||
post.update_column(:cooked, recooked)
|
post.update_columns(cooked: recooked, baked_at: Time.zone.now, baked_version: Post::BAKED_VERSION)
|
||||||
end
|
end
|
||||||
|
|
||||||
cp = CookedPostProcessor.new(post, args)
|
cp = CookedPostProcessor.new(post, args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue