mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: timing issue with edits and cook post processing
This commit is contained in:
parent
3aaa9a8722
commit
54d6d24cbf
9 changed files with 30 additions and 32 deletions
|
@ -176,7 +176,7 @@ class PostCreator
|
|||
cooking_options = post.cooking_options || {}
|
||||
cooking_options[:topic_id] = post.topic_id
|
||||
|
||||
post.cooked ||= post.cook(post.raw, cooking_options)
|
||||
post.cooked ||= post.cook(post.raw, cooking_options.symbolize_keys)
|
||||
post.sort_order = post.post_number
|
||||
post.last_version_at ||= Time.now
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue