A platform for community discussion. Free, open, simple.
correct params
Samc30ccceadebc
diff --git a/app/models/post.rb b/app/models/post.rbindex 485db2d7000..8312129479f 100644--- a/app/models/post.rb+++ b/app/models/post.rb@@ -482,9 +482,10 @@ class Post < ActiveRecord::Baseproblems << { post: p, ex: e }attempts = p.custom_fields["rebake_attempts"].to_i+if attempts > 3p.update_columns(baked_version: BAKED_VERSION)- Discourse.warn_exception(e, "Can not rebake post# #{p.id} after 3 attempts, giving up")+ Discourse.warn_exception(e, message: "Can not rebake post# #{p.id} after 3 attempts, giving up")elsep.custom_fields["rebake_attempts"] = attempts + 1p.save_custom_fields