A platform for community discussion. Free, open, simple.
FIX: explicity set username when creating new message via URL
Arpit Jalanb83ba97675ba
diff --git a/app/assets/javascripts/discourse/controllers/composer.js.es6 b/app/assets/javascripts/discourse/controllers/composer.js.es6index 9416e8df576..9d5b9e7a18e 100644--- a/app/assets/javascripts/discourse/controllers/composer.js.es6+++ b/app/assets/javascripts/discourse/controllers/composer.js.es6@@ -677,6 +677,10 @@ export default Ember.Controller.extend({composerModel.set('composeState', Composer.OPEN);composerModel.set('isWarning', false);+ if (opts.usernames) {+ this.set('model.targetUsernames', opts.usernames);+ }+if (opts.topicTitle && opts.topicTitle.length <= this.siteSettings.max_topic_title_length) {this.set('model.title', opts.topicTitle);}