mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 23:26:41 +08:00
FIX: explicity set username when creating new message via URL
This commit is contained in:
parent
23e690d0c2
commit
b83ba97675
@ -677,6 +677,10 @@ export default Ember.Controller.extend({
|
|||||||
composerModel.set('composeState', Composer.OPEN);
|
composerModel.set('composeState', Composer.OPEN);
|
||||||
composerModel.set('isWarning', false);
|
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) {
|
if (opts.topicTitle && opts.topicTitle.length <= this.siteSettings.max_topic_title_length) {
|
||||||
this.set('model.title', opts.topicTitle);
|
this.set('model.title', opts.topicTitle);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user