Skip to content

Commit

Permalink
Fix for retweet counts
Browse files Browse the repository at this point in the history
  • Loading branch information
hexplor committed Jul 5, 2018
1 parent f6073fa commit bf5a73b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# v0.1.6
## 07/05/2018
1. [](#bugfix)
* Fix for retweet counts

# v0.1.5
## 07/04/2018
1. [](#bugfix)
* Open links using intents
* Minor styling bugfixes
1. [](#new)
2. [](#new)
* Added Read More feature
* Both image and screen name are now linked

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Latest Tweets
version: 0.1.5
version: 0.1.6
description: Display latest tweets from your twitter account using PHP and OAuth.
icon: twitter
author:
Expand Down
12 changes: 10 additions & 2 deletions templates/partials/latest-tweets.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,19 @@
<div class="latest-tweets-item-counts">
<a href="https://twitter.com/intent/retweet?tweet_id={{ item.id }}">
<i class="fas fa-retweet"></i>
{{ item.retweet_count }}
{% if item.retweeted_status %}
{{ item.retweeted_status.retweet_count }}
{% else %}
{{ item.retweet_count }}
{% endif %}
</a>
<a href="https://twitter.com/intent/like?tweet_id={{ item.id }}">
<i class="far fa-heart"></i>
{{ item.favorite_count }}
{% if item.retweeted_status %}
{{ item.retweeted_status.favorite_count }}
{% else %}
{{ item.favorite_count }}
{% endif %}
</a>
</div>
{% if ltconfig.read_more %}
Expand Down

0 comments on commit bf5a73b

Please sign in to comment.