diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-07-13 14:36:27 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-07-13 14:36:27 -0400 |
commit | e38ea318a1287710313a0c86fecb76dff8a923aa (patch) | |
tree | 79a5158a3036563eb45852293f0c5a4af1a196b7 /web/react/components/member_list_item.jsx | |
parent | d2602f540c953ffea2e622ed4c699ab44eadd087 (diff) | |
parent | aff43f43f8185ae6d5555ca9f99bfcc4bd3eb99e (diff) | |
download | chat-e38ea318a1287710313a0c86fecb76dff8a923aa.tar.gz chat-e38ea318a1287710313a0c86fecb76dff8a923aa.tar.bz2 chat-e38ea318a1287710313a0c86fecb76dff8a923aa.zip |
Merge pull request #158 from nickago/MM-975
MM-975 Added timestamps to pictures to stop caching
Diffstat (limited to 'web/react/components/member_list_item.jsx')
-rw-r--r-- | web/react/components/member_list_item.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/member_list_item.jsx b/web/react/components/member_list_item.jsx index 357fd49a8..cf8c71d7e 100644 --- a/web/react/components/member_list_item.jsx +++ b/web/react/components/member_list_item.jsx @@ -23,6 +23,7 @@ module.exports = React.createClass({ var member = this.props.member; var isAdmin = this.props.isAdmin; var isMemberAdmin = member.roles.indexOf("admin") > -1; + var timestamp = UserStore.getCurrentUser().update_at; var invite; if (member.invited && this.props.handleInvite) { @@ -53,7 +54,7 @@ module.exports = React.createClass({ return ( <div className="row member-div"> - <img className="post-profile-img pull-left" src={"/api/v1/users/" + member.id + "/image"} height="36" width="36" /> + <img className="post-profile-img pull-left" src={"/api/v1/users/" + member.id + "/image?time=" + timestamp} height="36" width="36" /> <span className="member-name">{member.username}</span> <span className="member-email">{member.email}</span> { invite } |