From 6709eaeb3cac113e44097d71f6622be037c8d9cf Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 4 Sep 2015 17:23:37 +1000 Subject: [PATCH] better have some sane upper bound here. --- app/assets/javascripts/discourse/components/user-menu.js.es6 | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/components/user-menu.js.es6 b/app/assets/javascripts/discourse/components/user-menu.js.es6 index d934e9295..0b094fcea 100644 --- a/app/assets/javascripts/discourse/components/user-menu.js.es6 +++ b/app/assets/javascripts/discourse/components/user-menu.js.es6 @@ -49,6 +49,7 @@ export default Ember.Component.extend({ // we REALLY don't want to be asking for negative counts of notifications // less than 5 is also not that useful if (limit < 5) { limit = 5; } + if (limit > 40) { limit = 40; } // TODO: It's a bit odd to use the store in a component, but this one really // wants to reach out and grab notifications