diff options
author | =Corey Hulen <corey@hulen.com> | 2015-07-29 01:39:43 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-07-29 01:39:43 -0800 |
commit | 4244990bf118c04d4d66dd946aaf5217fc59a393 (patch) | |
tree | 9cfad1eec8a462577e1723c62b70520994c0920a /web/react/components/post_body.jsx | |
parent | 9677a9f71777d75f3def0b0cb238050a30ec6a67 (diff) | |
parent | d222f6c7a3c69a68879cc0fd5aeb7343d72dfb39 (diff) | |
download | chat-4244990bf118c04d4d66dd946aaf5217fc59a393.tar.gz chat-4244990bf118c04d4d66dd946aaf5217fc59a393.tar.bz2 chat-4244990bf118c04d4d66dd946aaf5217fc59a393.zip |
Merge branch 'master' into mm-1355
Diffstat (limited to 'web/react/components/post_body.jsx')
-rw-r--r-- | web/react/components/post_body.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx index 7871f52b7..9f598ecb3 100644 --- a/web/react/components/post_body.jsx +++ b/web/react/components/post_body.jsx @@ -126,7 +126,7 @@ module.exports = React.createClass({ } else if (i < Constants.MAX_DISPLAY_FILES) { postFiles.push( <div className="post-image__column custom-file" key={fileInfo.name+i}> - <a href={fileInfo.path+"."+fileInfo.ext} download={fileInfo.name+"."+fileInfo.ext}> + <a href={fileInfo.path + (fileInfo.ext ? "." + fileInfo.ext : "")} download={fileInfo.name + (fileInfo.ext ? "." + fileInfo.ext : "")}> <div className={"file-icon "+utils.getIconClassName(type)}/> </a> </div> |