Browse Source

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

pull/124/head
Carlos Fenollosa 5 years ago
parent
commit
3c73ef63cd
2 changed files with 1 additions and 3 deletions
  1. +1
    -0
      README.md
  2. +0
    -3
      bb.sh

+ 1
- 0
README.md View File

@ -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


+ 0
- 3
bb.sh View File

@ -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;";


Loading…
Cancel
Save