Re-add option that was removed by mistake in https://github.com/discourse/discourse/commit/482013a1d4060e69cf78773892f13ef2d8220742.

Re-add option that was removed by mistake in FIX: Group mentions missing after post processing. · discourse/discourse@482013a · GitHub.

From 3188d3506de95c3f1bf45d231b2b0cedf676b263 Mon Sep 17 00:00:00 2001
From: Guo Xiang Tan <tgx_world@hotmail.com>
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.


diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb
index df346bb..5b8391f 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

GitHub