From d3e62ea9069f75e9587219f9bc3159f5e1361b45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hut?= Date: Sat, 4 Apr 2015 15:30:16 +0200 Subject: [PATCH] Oembed: No gravatar when an email is detected --- clientapp/libraries/jquery.oembed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clientapp/libraries/jquery.oembed.js b/clientapp/libraries/jquery.oembed.js index 5da0b60..6b055e3 100644 --- a/clientapp/libraries/jquery.oembed.js +++ b/clientapp/libraries/jquery.oembed.js @@ -699,13 +699,13 @@ from: 'htmlstring' } }), - new $.fn.oembed.OEmbedProvider("gravtar", "photo", ["mailto:.+"], null, + /*new $.fn.oembed.OEmbedProvider("gravatar", "photo", ["mailto:.+"], null, { - templateRegex: /mailto:([^\/]+).*/, + templateRegex: /mailto:([^\/]+)., template: function (wm, email) { return 'on Gravtar'; } - }), + }),*/ new $.fn.oembed.OEmbedProvider("achewood", "photo", ["achewood\\.com\\/index.php\\?date=.+"], "http://www.achewood.com/comic.php?date=$1", {templateRegex: /.*achewood\.com\/index.php\?date=(\w+).*/, embedtag: {tag: 'iframe', width: 480, height: 360 }, nocache: 1}), new $.fn.oembed.OEmbedProvider("fotokritik", "photo", ["fotokritik\\.com/.+"], "http://www.fotokritik.com/embed/$1", {templateRegex: [/.*fotokritik\.com\/embed\/(\w+).*/, /.*fotokritik\.com\/(\w+).*/], embedtag: {tag: 'iframe', width: 480, height: 360 }, nocache: 1}), new $.fn.oembed.OEmbedProvider("giflike", "photo", ["giflike\\.com/.+"], "http://www.giflike.com/embed/$1", {templateRegex: [/.*giflike\.com\/embed\/(\w+).*/, /.*giflike\.com\/a\/(\w+).*/], embedtag: {tag: 'iframe', width: 480, height: 360 }, nocache: 1}),