diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-04-01 12:40:07 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-04-01 14:08:02 -0300 |
commit | 9ec459526a2bf4d119ab779473c9606c524b6131 (patch) | |
tree | 06cc009b3d0fae371694bad301d60ba4182c0f0c /webapp/components | |
parent | ff01fc7337eedc51c84610a8c6bf578e4f42b9df (diff) | |
download | chat-9ec459526a2bf4d119ab779473c9606c524b6131.tar.gz chat-9ec459526a2bf4d119ab779473c9606c524b6131.tar.bz2 chat-9ec459526a2bf4d119ab779473c9606c524b6131.zip |
Rename extractLinks to extractFirstLink
Diffstat (limited to 'webapp/components')
-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; } |