mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
Fix a regression that broke pre-fill of username when sending private message
This commit is contained in:
parent
320b35bf90
commit
dda831fd41
1 changed files with 1 additions and 3 deletions
|
@ -18,11 +18,9 @@ Discourse.UserActivityController = Discourse.ObjectController.extend({
|
||||||
composePrivateMessage: function() {
|
composePrivateMessage: function() {
|
||||||
return this.get('controllers.composer').open({
|
return this.get('controllers.composer').open({
|
||||||
action: Discourse.Composer.PRIVATE_MESSAGE,
|
action: Discourse.Composer.PRIVATE_MESSAGE,
|
||||||
usernames: this.get('content').username,
|
usernames: this.get('content.user.username'),
|
||||||
archetypeId: 'private_message',
|
archetypeId: 'private_message',
|
||||||
draftKey: 'new_private_message'
|
draftKey: 'new_private_message'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue