FIX: Invited by link was broken on user activity.
This commit is contained in:
parent
7d763a6f0c
commit
1879176e80
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue