mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: process_post job should update baked_at and baked_version if it rebakes the post
This commit is contained in:
@@ -17,7 +17,7 @@ module Jobs
|
||||
cooking_options = args[:cooking_options] || {}
|
||||
cooking_options[:topic_id] = post.topic_id
|
||||
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
|
||||
|
||||
cp = CookedPostProcessor.new(post, args)
|
||||
|
||||
Reference in New Issue
Block a user