Revert "FIX: Don't skip callbacks when rebaking posts."

This reverts commit 06c651f8c9.

If site settings are changed, there is a chance that the post
will fail PostValidator's validations.
This commit is contained in:
Guo Xiang Tan 2017-02-01 10:52:15 +08:00
parent a898d6a02a
commit d449f782a3
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ class Post < ActiveRecord::Base
new_cooked = cook(raw, topic_id: topic_id, invalidate_oneboxes: opts.fetch(:invalidate_oneboxes, false))
old_cooked = cooked
self.update!(cooked: new_cooked, baked_at: Time.new, baked_version: BAKED_VERSION)
update_columns(cooked: new_cooked, baked_at: Time.new, baked_version: BAKED_VERSION)
# Extracts urls from the body
TopicLink.extract_from(self)