From d6c6f5eaeacd16b3615c855ab7b8aa51f9f46efe Mon Sep 17 00:00:00 2001
From: hmhealey <harrisonmhealey@gmail.com>
Date: Mon, 22 Feb 2016 17:58:20 -0500
Subject: Refactored how links are extracted to remove code blocks and markdown
 images

---
 web/react/components/post_body.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'web/react/components/post_body.jsx')

diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx
index b187acba3..506b38ce6 100644
--- a/web/react/components/post_body.jsx
+++ b/web/react/components/post_body.jsx
@@ -41,7 +41,7 @@ class PostBody extends React.Component {
         const linkData = Utils.extractLinks(this.props.post.message);
 
         this.state = {
-            links: linkData.links,
+            links: linkData,
             post: this.props.post
         };
     }
@@ -86,10 +86,10 @@ class PostBody extends React.Component {
     componentWillReceiveProps(nextProps) {
         const linkData = Utils.extractLinks(nextProps.post.message);
         if (this.props.post.filenames.length === 0 && this.state.links && this.state.links.length > 0) {
-            this.embed = this.createEmbed(linkData.links[0]);
+            this.embed = this.createEmbed(linkData[0]);
         }
         this.setState({
-            links: linkData.links
+            links: linkData
         });
     }
 
-- 
cgit v1.2.3-1-g7c22

