Skip to content

Commit 3c73ef6

Browse files
committed
Deleted the now defunct Twitter JSON API for share count. Fix cfenollosa#117
1 parent b5a4590 commit 3c73ef6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Changelog
134134

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

bb.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,6 @@ twitter() {
352352
353353
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> "
354354
echo "<a href='$search_engine""$1'><span id='count-$id'></span></a>&nbsp;</p>"
355-
# Get current tweet count
356-
echo "<script type=\"text/javascript\">\$.ajax({type: \"GET\", url: \"https://cdn.api.twitter.com/1/urls/count.json?url=$1\",
357-
dataType: \"jsonp\", success: function(data){ \$(\"#count-$id\").html(\"(\" + data.count + \")\"); }}); </script>"
358355
return;
359356
else
360357
echo "<p id='twitter'>$template_comments&nbsp;";

0 commit comments

Comments
 (0)