diff options
author | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2014-07-18 09:20:44 +0200 |
---|---|---|
committer | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2014-07-18 09:20:44 +0200 |
commit | 1cd13b0f8c565416cfe044f20f86eb042fba5e3e (patch) | |
tree | 5102947601805761cb7d385bb84eae34ee1230d1 | |
parent | 95e36a513783a0e3b5459dcac5132ac650cf8751 (diff) |
updated twitter count api
-rwxr-xr-x | bb.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -440,7 +440,7 @@ 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 "<a href='$search_engine""$1'><span id='count-$id'></span></a> </p>" # Get current tweet count - echo '<script type="text/javascript">$.ajax({type: "GET", url: "http://urls.api.twitter.com/1/urls/count.json?url='$1'", + 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; else |