diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-04-01 15:05:54 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-04-01 15:05:54 -0400 |
commit | a427d61b33fa0e3926c61bab456feb907a89af59 (patch) | |
tree | b6b5901fa739971020d4662d7de27d8b9c78de5f /webapp/components/post_body_additional_content.jsx | |
parent | d9d6a0c7837d585297047e2a606ef20c86bfdfc2 (diff) | |
parent | 9ec459526a2bf4d119ab779473c9606c524b6131 (diff) | |
download | chat-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/post_body_additional_content.jsx')
-rw-r--r-- | webapp/components/post_body_additional_content.jsx | 2 |
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; } |