Merge pull request #465 from rgarmsen2295/prof-img-fix
Fixes issue with site trying to load profile pictures without having profile information
Этот коммит содержится в:
@@ -102,7 +102,12 @@ module.exports = React.createClass({
|
|||||||
currentUserCss = "current--user";
|
currentUserCss = "current--user";
|
||||||
}
|
}
|
||||||
|
|
||||||
var timestamp = UserStore.getProfile(post.user_id).update_at;
|
var userProfile = UserStore.getProfile(post.user_id);
|
||||||
|
|
||||||
|
var timestamp = UserStore.getCurrentUser().update_at;
|
||||||
|
if (userProfile) {
|
||||||
|
timestamp = userProfile.update_at;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user