A platform for community discussion. Free, open, simple.
FIX: Anonymous users shouldn't see the link to new in the footer
Robin Wardf8856f3d7a32
diff --git a/app/assets/javascripts/discourse/components/suggested-topics.js.es6 b/app/assets/javascripts/discourse/components/suggested-topics.js.es6index 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;