Deleted the now defunct Twitter JSON API for share count. Fix #117
This commit is contained in:
parent
b5a459022d
commit
3c73ef63cd
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
3
bb.sh
3
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> </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 ";
|
||||
|
|
Loading…
Reference in a new issue