diff --git a/app/assets/javascripts/discourse/controllers/composer_controller.js.coffee b/app/assets/javascripts/discourse/controllers/composer_controller.js.coffee index ee697f3c082..5ad11c9468b 100644 --- a/app/assets/javascripts/discourse/controllers/composer_controller.js.coffee +++ b/app/assets/javascripts/discourse/controllers/composer_controller.js.coffee @@ -22,7 +22,12 @@ window.Discourse.ComposerController = Ember.Controller.extend Discourse.Presence .then (opts) => opts = opts || {} @close() - Discourse.set('currentUser.post_count', Discourse.get('currentUser.post_count') + 1) + + if composer.get('creatingTopic') + Discourse.set('currentUser.topic_count', Discourse.get('currentUser.topic_count') + 1) + else + Discourse.set('currentUser.reply_count', Discourse.get('currentUser.reply_count') + 1) + Discourse.routeTo(opts.post.get('url')) , (error) => composer.set('disableDrafts', false) diff --git a/app/assets/javascripts/discourse/templates/composer.js.handlebars b/app/assets/javascripts/discourse/templates/composer.js.handlebars index 72e7e19239c..e1c6d5417c7 100644 --- a/app/assets/javascripts/discourse/templates/composer.js.handlebars +++ b/app/assets/javascripts/discourse/templates/composer.js.handlebars @@ -2,7 +2,7 @@
-
+