FIX: Invited by link was broken on user activity.

This commit is contained in:
Robin Ward 2013-05-27 11:05:41 -04:00
parent 7d763a6f0c
commit 1879176e80
1 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,10 @@ Discourse.User = Discourse.Model.extend({
return Discourse.UserActionStat.create(s);
}));
if (json.user.invited_by) {
json.user.invited_by = Discourse.User.create(json.user.invited_by);
}
user.setProperties(json.user);
return user;
});