diff --git a/app/assets/javascripts/discourse.js.es6 b/app/assets/javascripts/discourse.js.es6 index 3c072dfc869..d993e3b9830 100644 --- a/app/assets/javascripts/discourse.js.es6 +++ b/app/assets/javascripts/discourse.js.es6 @@ -92,14 +92,6 @@ const Discourse = Ember.Application.extend(FocusEvent, { } }, - // The classes of buttons to show on a post - @computed - postButtons() { - return Discourse.SiteSettings.post_menu.split("|").map(function(i) { - return i.replace(/\+/, "").capitalize(); - }); - }, - updateContextCount(count) { this.set("contextCount", count); }, diff --git a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-menu.js.es6 index eb14943d2e3..c74ee85d10a 100644 --- a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-menu.js.es6 @@ -396,8 +396,7 @@ export default createWidget("post-menu", { }, menuItems() { - let result = this.siteSettings.post_menu.split("|"); - return result; + return this.siteSettings.post_menu.split("|").filter(Boolean); }, html(attrs, state) {