Ver código fonte

Deleted the now defunct Twitter JSON API for share count. Fix #117

Carlos Fenollosa 8 anos atrás
pai
commit
3c73ef63cd
2 arquivos alterados com 1 adições e 3 exclusões
  1. 1 0
      README.md
  2. 0 3
      bb.sh

+ 1 - 0
README.md

@@ -134,6 +134,7 @@ Changelog
 
 
 - 2.8      Bugfixes
 - 2.8      Bugfixes
            Slavic language support thanks to Tomasz Jadowski
            Slavic language support thanks to Tomasz Jadowski
+           Removed the now defunct Twitter JSON API share count
 - 2.7      Store post date on a comment in the html file (#96). 
 - 2.7      Store post date on a comment in the html file (#96). 
            On rebuild, the post date will be synchronised between comment date and file date, with precedence for comment date.
            On rebuild, the post date will be synchronised between comment date and file date, with precedence for comment date.
 - 2.6      Support for multiple authors, use a different `.config` for each one
 - 2.6      Support for multiple authors, use a different `.config` for each one

+ 0 - 3
bb.sh

@@ -352,9 +352,6 @@ twitter() {
 
 
             echo "<p id='twitter'><a href='http://twitter.com/intent/tweet?url=$1&text=$template_twitter_comment&via=$global_twitter_username'>$template_comments $template_twitter_button</a> "
             echo "<p id='twitter'><a href='http://twitter.com/intent/tweet?url=$1&text=$template_twitter_comment&via=$global_twitter_username'>$template_comments $template_twitter_button</a> "
             echo "<a href='$search_engine""$1'><span id='count-$id'></span></a>&nbsp;</p>"
             echo "<a href='$search_engine""$1'><span id='count-$id'></span></a>&nbsp;</p>"
-            # Get current tweet count
-            echo "<script type=\"text/javascript\">\$.ajax({type: \"GET\", url: \"https://cdn.api.twitter.com/1/urls/count.json?url=$1\",
-            dataType: \"jsonp\", success: function(data){ \$(\"#count-$id\").html(\"(\" + data.count + \")\"); }}); </script>"
             return;
             return;
         else 
         else 
             echo "<p id='twitter'>$template_comments&nbsp;"; 
             echo "<p id='twitter'>$template_comments&nbsp;";