From dda831fd41014c8c4439b3271762e4a74f9ad0c7 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 28 May 2013 14:17:23 -0400 Subject: [PATCH] Fix a regression that broke pre-fill of username when sending private message --- .../discourse/controllers/user_activity_controller.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/user_activity_controller.js b/app/assets/javascripts/discourse/controllers/user_activity_controller.js index 27a53d1eb..ecc15ca48 100644 --- a/app/assets/javascripts/discourse/controllers/user_activity_controller.js +++ b/app/assets/javascripts/discourse/controllers/user_activity_controller.js @@ -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' }); } }); - -