summaryrefslogtreecommitdiffstats
path: root/web/react/components/mention.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-07-13 14:36:27 -0400
committerChristopher Speller <crspeller@gmail.com>2015-07-13 14:36:27 -0400
commite38ea318a1287710313a0c86fecb76dff8a923aa (patch)
tree79a5158a3036563eb45852293f0c5a4af1a196b7 /web/react/components/mention.jsx
parentd2602f540c953ffea2e622ed4c699ab44eadd087 (diff)
parentaff43f43f8185ae6d5555ca9f99bfcc4bd3eb99e (diff)
downloadchat-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/mention.jsx')
-rw-r--r--web/react/components/mention.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/mention.jsx b/web/react/components/mention.jsx
index 3c33ddf49..520b81cbb 100644
--- a/web/react/components/mention.jsx
+++ b/web/react/components/mention.jsx
@@ -1,5 +1,6 @@
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.
+var UserStore = require("../stores/user_store.jsx");
module.exports = React.createClass({
handleClick: function() {
@@ -7,8 +8,9 @@ module.exports = React.createClass({
},
render: function() {
var icon;
+ var timestamp = UserStore.getCurrentUser().update_at;
if (this.props.id != null) {
- icon = <span><img className="mention-img" src={"/api/v1/users/" + this.props.id + "/image"}/></span>;
+ icon = <span><img className="mention-img" src={"/api/v1/users/" + this.props.id + "/image?time=" + timestamp}/></span>;
} else {
icon = <span><i className="mention-img fa fa-users fa-2x"></i></span>;
}