Skip to content

A platform for community discussion. Free, open, simple.

FIX: prevents self-reference to discoveryTopics from discoveryTopics (#16114)

Joffrey JAFFEUX36e7163d164f
diff --git a/app/assets/javascripts/discourse/app/controllers/discovery/topics.js b/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
index efc5d66e2c9..73143a1755b 100644
--- a/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
+++ b/app/assets/javascripts/discourse/app/controllers/discovery/topics.js
@@ -15,14 +15,13 @@ import { action } from "@ember/object";
const controllerOpts = {
discovery: controller(),
- discoveryTopics: controller("discovery/topics"),
router: service(),
period: null,
canCreateTopicOnCategory: null,
canStar: alias("currentUser.id"),
- showTopicPostBadges: not("discoveryTopics.new"),
+ showTopicPostBadges: not("new"),
redirectedReason: alias("currentUser.redirected_to_top.reason"),
expandGloballyPinned: false,