From 46613a1679347d633ffbe29d7290c17808211d0d Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Wed, 28 Oct 2015 09:13:41 -0400 Subject: Prevent markdown styled links from embedding gifs --- web/react/components/post_body.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react/components') 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]); } -- cgit v1.2.3-1-g7c22