summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_right.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-09 16:37:03 -0700
committernickago <ngonella@calpoly.edu>2015-07-13 08:58:51 -0700
commitc3aed620316241eba48ecd2fd1f36a309bcfdff9 (patch)
tree0bb97f7ad036986fe4b7b0e35d9cbf39c740a067 /web/react/components/post_right.jsx
parent6cc8788193630b802375669c72fab02220cb692a (diff)
downloadchat-c3aed620316241eba48ecd2fd1f36a309bcfdff9.tar.gz
chat-c3aed620316241eba48ecd2fd1f36a309bcfdff9.tar.bz2
chat-c3aed620316241eba48ecd2fd1f36a309bcfdff9.zip
Added timestamps to pictures to stop caching
Diffstat (limited to 'web/react/components/post_right.jsx')
-rw-r--r--web/react/components/post_right.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx
index 115ee87d4..d48b0f0ef 100644
--- a/web/react/components/post_right.jsx
+++ b/web/react/components/post_right.jsx
@@ -67,6 +67,7 @@ RootPost = React.createClass({
var message = utils.textToJsx(this.props.post.message);
var filenames = this.props.post.filenames;
var isOwner = UserStore.getCurrentId() == this.props.post.user_id;
+ var timestamp = UserStore.getProfile(this.props.post.user_id).update_at;
var type = "Post";
if (this.props.post.root_id.length > 0) {
@@ -118,7 +119,7 @@ RootPost = React.createClass({
return (
<div className={"post post--root " + currentUserCss}>
<div className="post-profile-img__container">
- <img className="post-profile-img" src={"/api/v1/users/" + this.props.post.user_id + "/image"} height="36" width="36" />
+ <img className="post-profile-img" src={"/api/v1/users/" + this.props.post.user_id + "/image?time=" + timestamp} height="36" width="36" />
</div>
<div className="post__content">
<ul className="post-header">