From 36e7163d164fe7ecf02928c42255412edda544f4 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 7 Mar 2022 09:27:19 +0100 Subject: [PATCH] FIX: prevents self-reference to discoveryTopics from discoveryTopics (#16114) --- .../javascripts/discourse/app/controllers/discovery/topics.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,