diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-12-09 12:24:34 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-12-09 12:24:34 -0500 |
commit | 699230bb3f14a55acbf49a678df7fd87f865ae5b (patch) | |
tree | b46345cef45e9479b06d4237565e5379e429758a /web/react/utils/utils.jsx | |
parent | 7f1b0cbd1f85149d7dce4caec33cbe0579cb64e3 (diff) | |
download | chat-699230bb3f14a55acbf49a678df7fd87f865ae5b.tar.gz chat-699230bb3f14a55acbf49a678df7fd87f865ae5b.tar.bz2 chat-699230bb3f14a55acbf49a678df7fd87f865ae5b.zip |
Fix OEmbeds when switching channel, vine/soundcloud heights, and youtube embeds
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r-- | web/react/utils/utils.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |