From d636fbaae8b240ebfcafaa7bb34692ca9922afca Mon Sep 17 00:00:00 2001 From: Wade Menard Date: Thu, 31 Mar 2016 18:44:38 -0400 Subject: [PATCH] Modify Imgur's link response to HTTPS. --- js/imgur.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/imgur.js b/js/imgur.js index a5a0fd0..fdcacf6 100644 --- a/js/imgur.js +++ b/js/imgur.js @@ -71,7 +71,7 @@ weechat.factory('imgur', ['$rootScope', function($rootScope) { if( response.data && response.data.link ) { if (callback && typeof(callback) === "function") { - callback(response.data.link); + callback(response.data.link.replace(/^http:/, "https:")); } } else {