FIX: Don't skip callbacks when rebaking posts.

This commit is contained in:
Guo Xiang Tan 2017-01-25 17:47:13 +08:00
parent 781d83a46f
commit 06c651f8c9
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
update_columns(cooked: new_cooked, baked_at: Time.new, baked_version: BAKED_VERSION)
self.update!(cooked: new_cooked, baked_at: Time.new, baked_version: BAKED_VERSION)
# Extracts urls from the body
TopicLink.extract_from(self)