главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rwxr-xr-xbb.sh3
2 files changed, 1 insertions, 3 deletions
diff --git a/README.md b/README.md
index f77ba54..862d347 100644
--- a/README.md
+++ b/README.md
@@ -134,6 +134,7 @@ Changelog
- 2.8 Bugfixes
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).
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
diff --git a/bb.sh b/bb.sh
index acb23fe..39dfcd7 100755
--- a/bb.sh
+++ b/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 "<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;
else
echo "<p id='twitter'>$template_comments&nbsp;";