Revert "DEV: Remove an unnecessary join in `TopicTrackingState.report`." (#14054)

Revert “DEV: Remove an unnecessary join in TopicTrackingState.report.” (#14054)

This reverts commit 06ee0e5a51e90d98efffd446c8f088cf74663188.

diff --git a/app/models/topic_tracking_state.rb b/app/models/topic_tracking_state.rb
index 2d360ec..608c8f3 100644
--- a/app/models/topic_tracking_state.rb
+++ b/app/models/topic_tracking_state.rb
@@ -476,7 +476,7 @@ class TopicTrackingState
       JOIN categories c ON c.id = topics.category_id
       LEFT JOIN topic_users tu ON tu.topic_id = topics.id AND tu.user_id = u.id
       LEFT JOIN category_users ON category_users.category_id = topics.category_id AND category_users.user_id = #{user.id}
-      #{skip_new ? "" : "LEFT JOIN dismissed_topic_users ON dismissed_topic_users.topic_id = topics.id AND dismissed_topic_users.user_id = #{user.id}"}
+      LEFT JOIN dismissed_topic_users ON dismissed_topic_users.topic_id = topics.id AND dismissed_topic_users.user_id = #{user.id}
       #{additional_join_sql}
       WHERE u.id = :user_id AND
             #{filter_old_unread_sql}

GitHub sha: f438cb8e65b2239a4410de5f43a35e2e67b775d2

This commit appears in #14054 which was approved by lis2. It was merged by martin.