summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-04-01 15:05:54 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-04-01 15:05:54 -0400
commita427d61b33fa0e3926c61bab456feb907a89af59 (patch)
treeb6b5901fa739971020d4662d7de27d8b9c78de5f /webapp/components
parentd9d6a0c7837d585297047e2a606ef20c86bfdfc2 (diff)
parent9ec459526a2bf4d119ab779473c9606c524b6131 (diff)
downloadchat-a427d61b33fa0e3926c61bab456feb907a89af59.tar.gz
chat-a427d61b33fa0e3926c61bab456feb907a89af59.tar.bz2
chat-a427d61b33fa0e3926c61bab456feb907a89af59.zip
Merge pull request #2602 from ZBoxApp/autolinker
Replace Autolinker in extractLinks with a pattern
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/post_body_additional_content.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_body_additional_content.jsx b/webapp/components/post_body_additional_content.jsx
index 2cd82f213..452597dde 100644
--- a/webapp/components/post_body_additional_content.jsx
+++ b/webapp/components/post_body_additional_content.jsx
@@ -70,7 +70,7 @@ export default class PostBodyAdditionalContent extends React.Component {
return this.getSlackAttachment();
}
- const link = Utils.extractLinks(this.props.post.message)[0];
+ const link = Utils.extractFirstLink(this.props.post.message);
if (!link) {
return null;
}