From f38fd1a5a7e2b5a29f7ce80e2adb1e8e020d7595 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 1 Oct 2021 10:53:05 +0800 Subject: [PATCH] FIX: Error loading suggested topics for anon users. (#14485) Follow-up to fc1fd1b41689694b3916dc4e10605eb9b8bb89b7 --- app/assets/javascripts/discourse/app/models/post-stream.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/models/post-stream.js b/app/assets/javascripts/discourse/app/models/post-stream.js index 62b96e788f9..939b684900f 100644 --- a/app/assets/javascripts/discourse/app/models/post-stream.js +++ b/app/assets/javascripts/discourse/app/models/post-stream.js @@ -1252,6 +1252,8 @@ export default RestModel.extend({ suggested_group_name: result.suggested_group_name, }); - this.pmTopicTrackingState.startTracking(); + if (this.topic.isPrivateMessage) { + this.pmTopicTrackingState.startTracking(); + } }, });