From fb4b9a9cc6161073ed80fd5f482060ab5c97c0c3 Mon Sep 17 00:00:00 2001 From: Alaa Ali Date: Tue, 21 Apr 2015 13:42:47 +0200 Subject: [PATCH] Update timeline.js replace the protocol-relative twitter API URL.. with explicit secured protocol (https) for twitter calls, as it doesn't accept non-SSL calls. --- build/js/timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/js/timeline.js b/build/js/timeline.js index 1ff00f0..e8a4c43 100644 --- a/build/js/timeline.js +++ b/build/js/timeline.js @@ -2923,7 +2923,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { getOEmbed: function(tweet, callback) { - var the_url = "//api.twitter.com/1/statuses/oembed.json?id=" + tweet.mid + "&omit_script=true&include_entities=true&callback=?", + var the_url = "https://api.twitter.com/1/statuses/oembed.json?id=" + tweet.mid + "&omit_script=true&include_entities=true&callback=?", twitter_timeout = setTimeout(VMM.ExternalAPI.twitter.errorTimeOutOembed, VMM.master_config.timers.api, tweet); //callback_timeout= setTimeout(callback, VMM.master_config.timers.api, tweet); @@ -2967,7 +2967,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { getHTML: function(id) { //var the_url = document.location.protocol + "//api.twitter.com/1/statuses/oembed.json?id=" + id+ "&callback=?"; - var the_url = "//api.twitter.com/1/statuses/oembed.json?id=" + id+ "&omit_script=true&include_entities=true&callback=?"; + var the_url = "https://api.twitter.com/1/statuses/oembed.json?id=" + id+ "&omit_script=true&include_entities=true&callback=?"; VMM.getJSON(the_url, VMM.ExternalAPI.twitter.onJSONLoaded); },