diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-09 16:37:03 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-13 08:58:51 -0700 |
commit | c3aed620316241eba48ecd2fd1f36a309bcfdff9 (patch) | |
tree | 0bb97f7ad036986fe4b7b0e35d9cbf39c740a067 /web/react/components/post.jsx | |
parent | 6cc8788193630b802375669c72fab02220cb692a (diff) | |
download | chat-c3aed620316241eba48ecd2fd1f36a309bcfdff9.tar.gz chat-c3aed620316241eba48ecd2fd1f36a309bcfdff9.tar.bz2 chat-c3aed620316241eba48ecd2fd1f36a309bcfdff9.zip |
Added timestamps to pictures to stop caching
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r-- | web/react/components/post.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx index 04b5ba082..726fb1b02 100644 --- a/web/react/components/post.jsx +++ b/web/react/components/post.jsx @@ -74,12 +74,14 @@ module.exports = React.createClass({ currentUserCss = "current--user"; } + var timestamp = UserStore.getCurrentUser().update_at; + return ( <div> <div id={post.id} className={"post " + this.props.sameUser + " " + rootUser + " " + postType + " " + currentUserCss}> { !this.props.hideProfilePic ? <div className="post-profile-img__container"> - <img className="post-profile-img" src={"/api/v1/users/" + post.user_id + "/image"} height="36" width="36" /> + <img className="post-profile-img" src={"/api/v1/users/" + post.user_id + "/image?time=" + timestamp} height="36" width="36" /> </div> : "" } <div className="post__content"> |