From 3188d3506de95c3f1bf45d231b2b0cedf676b263 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 26 Nov 2018 14:23:56 +0800 Subject: [PATCH] Re-add option that was removed by mistake in https://github.com/discourse/discourse/commit/482013a1d4060e69cf78773892f13ef2d8220742. --- lib/cooked_post_processor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb index df346bb5b73..5b8391ffe4f 100644 --- a/lib/cooked_post_processor.rb +++ b/lib/cooked_post_processor.rb @@ -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