From f8856f3d7a321fcf6107bca7b1301212ae3fd19f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 26 Feb 2018 13:46:24 -0500 Subject: [PATCH] FIX: Anonymous users shouldn't see the link to new in the footer --- .../javascripts/discourse/components/suggested-topics.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/suggested-topics.js.es6 b/app/assets/javascripts/discourse/components/suggested-topics.js.es6 index 87ffd1865b6..c9c298bd23d 100644 --- a/app/assets/javascripts/discourse/components/suggested-topics.js.es6 +++ b/app/assets/javascripts/discourse/components/suggested-topics.js.es6 @@ -31,7 +31,7 @@ export default Ember.Component.extend({ } const unreadTopics = this.topicTrackingState.countUnread(); - const newTopics = this.topicTrackingState.countNew(); + const newTopics = this.currentUser ? this.topicTrackingState.countNew() : 0; if (newTopics + unreadTopics > 0) { const hasBoth = unreadTopics > 0 && newTopics > 0;