mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
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:
parent
a898d6a02a
commit
d449f782a3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user