Fix a regression that broke pre-fill of username when sending private message

This commit is contained in:
Neil Lalonde 2013-05-28 14:17:23 -04:00
parent 320b35bf90
commit dda831fd41

View file

@ -18,11 +18,9 @@ Discourse.UserActivityController = Discourse.ObjectController.extend({
composePrivateMessage: function() {
return this.get('controllers.composer').open({
action: Discourse.Composer.PRIVATE_MESSAGE,
usernames: this.get('content').username,
usernames: this.get('content.user.username'),
archetypeId: 'private_message',
draftKey: 'new_private_message'
});
}
});