mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Merge pull request #465 from rgarmsen2295/prof-img-fix
Fixes issue with site trying to load profile pictures without having profile information
This commit is contained in:
@@ -102,7 +102,12 @@ module.exports = React.createClass({
|
||||
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 (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user