roll back tls upgrade for giphy plugin link, as it conflicts with printed link

This commit is contained in:
Colin Arnott 2015-09-28 17:35:28 +00:00
parent 875001f1b2
commit 2f8ab9dbf3

View file

@ -363,8 +363,6 @@ plugins.factory('userPlugins', function() {
var id = url.match(regex);
if (id) {
var src = "https://media.giphy.com/media/" + id[1] + "/giphy.gif";
/* upgrade any http url to tls, yeah crypto */
if (url.match(/^http:/i)) { url.replace(/^http:/, "https:"); }
return '<a target="_blank" href="'+url+'"><img class="embed" src="' + src + '"></a>';
}
});