From 699230bb3f14a55acbf49a678df7fd87f865ae5b Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Wed, 9 Dec 2015 12:24:34 -0500 Subject: Fix OEmbeds when switching channel, vine/soundcloud heights, and youtube embeds --- web/react/utils/utils.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/react/utils') diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index eb1d36ced..c2e4276b0 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -300,7 +300,7 @@ export function extractLinks(text) { Autolinker.link(text, { replaceFn, - urls: true, + urls: {schemeMatches: true, wwwMatches: true, tldMatches: false}, emails: false, twitter: false, phone: false, @@ -1253,4 +1253,4 @@ export function isFeatureEnabled(feature) { export function isSystemMessage(post) { return post.type && (post.type.lastIndexOf(Constants.SYSTEM_MESSAGE_PREFIX) === 0); -} \ No newline at end of file +} -- cgit v1.2.3-1-g7c22