From 7e52106812322374b5017768e98df8c33f9bc10e Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 2 Jun 2020 11:41:49 +1000 Subject: [PATCH] DEV: when synchornizing state pull tags In some cases we may want topic tracking state to keep track of tags this small change ensures we do not remove them if they are already in place --- .../javascripts/discourse/app/models/topic-tracking-state.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/app/models/topic-tracking-state.js b/app/assets/javascripts/discourse/app/models/topic-tracking-state.js index 65d1c21269f..ee18ed42874 100644 --- a/app/assets/javascripts/discourse/app/models/topic-tracking-state.js +++ b/app/assets/javascripts/discourse/app/models/topic-tracking-state.js @@ -354,6 +354,10 @@ const TopicTrackingState = EmberObject.extend({ row.category_id = topic.category.id; } + if (topic.tags) { + row.tags = topic.tags; + } + tracker.states["t" + topic.id] = row; });