From 2f9afcc835bc7e2526054bf2cfde12c230d1db02 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Fri, 25 Dec 2015 20:07:53 +0100 Subject: [PATCH] Removed Twitter share count --- wcfsetup/install/files/js/WCF.Message.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index b1805573f5..ce0e293fff 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -2879,7 +2879,6 @@ WCF.Message.Share.Page = Class.extend({ if (fetchObjectCount === true) { this._fetchFacebook(); - this._fetchTwitter(); this._fetchReddit(); } }, @@ -2958,19 +2957,6 @@ WCF.Message.Share.Page = Class.extend({ }, this)); }, - /** - * Fetches tweet count from Twitter. - */ - _fetchTwitter: function() { - if (window.location.protocol.match(/^https/)) return; - - this._fetchCount('http://urls.api.twitter.com/1/urls/count.json?url={pageURL}', $.proxy(function(data) { - if (data.count) { - this._ui.twitter.children('span.badge').show().text(data.count); - } - }, this)); - }, - /** * Fetches cumulative vote sum from Reddit. */ -- 2.20.1