summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-28 14:44:53 -0700
committerCorey Hulen <corey@hulen.com>2015-10-28 14:44:53 -0700
commit5f2e01a93815f6a877b179d04e8f9e89ebd3077b (patch)
treef1921222e92b90a0df623d579904348fe1caa360 /web/react/components
parent89f67cd11dbb71d42a8809976715d6df86d46c95 (diff)
parent46613a1679347d633ffbe29d7290c17808211d0d (diff)
downloadchat-5f2e01a93815f6a877b179d04e8f9e89ebd3077b.tar.gz
chat-5f2e01a93815f6a877b179d04e8f9e89ebd3077b.tar.bz2
chat-5f2e01a93815f6a877b179d04e8f9e89ebd3077b.zip
Merge pull request #1213 from mattermost/plt-836
PLT-836 Prevent markdown styled links from embedding gifs
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/post_body.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx
index 45eae8c6a..7138e2cb4 100644
--- a/web/react/components/post_body.jsx
+++ b/web/react/components/post_body.jsx
@@ -297,7 +297,7 @@ export default class PostBody extends React.Component {
}
let embed;
- if (filenames.length === 0 && this.state.links) {
+ if (filenames.length === 0 && this.state.links && this.state.links.length > 0) {
embed = this.createEmbed(this.state.links[0]);
}