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

This commit is contained in:
Carlos Fenollosa 2016-10-24 15:59:28 +02:00
parent b5a459022d
commit 3c73ef63cd
2 changed files with 1 additions and 3 deletions

View file

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

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