A platform for community discussion. Free, open, simple.
FIX: process_post job should update baked_at and baked_version if it rebakes the post
Neil Lalonde8fe61c68a13e
diff --git a/app/jobs/regular/process_post.rb b/app/jobs/regular/process_post.rbindex 88e340501a4..6c8b4e7d2f9 100644--- a/app/jobs/regular/process_post.rb+++ b/app/jobs/regular/process_post.rb@@ -17,7 +17,7 @@ module Jobscooking_options = args[:cooking_options] || {}cooking_options[:topic_id] = post.topic_idrecooked = 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)endcp = CookedPostProcessor.new(post, args)