Re-add option that was removed by mistake in 482013a1d4.

This commit is contained in:
Guo Xiang Tan 2018-11-26 14:23:56 +08:00
parent 482013a1d4
commit 3188d3506d
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class CookedPostProcessor
# NOTE: we re-cook the post here in order to prevent timing issues with edits
# cf. https://meta.discourse.org/t/edit-of-rebaked-post-doesnt-show-in-html-only-in-raw/33815/6
@cooking_options = post.cooking_options || opts[:cooking_options] || {}
@cooking_options[:topic_id] = post.topic_id
@cooking_options = @cooking_options.symbolize_keys
analyzer = post.post_analyzer