summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-04-01 12:40:07 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-04-01 14:08:02 -0300
commit9ec459526a2bf4d119ab779473c9606c524b6131 (patch)
tree06cc009b3d0fae371694bad301d60ba4182c0f0c /webapp/components
parentff01fc7337eedc51c84610a8c6bf578e4f42b9df (diff)
downloadchat-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.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;
}