Skip to content

Commit

Permalink
Fix expanding urls
Browse files Browse the repository at this point in the history
  • Loading branch information
tribela committed Feb 21, 2017
1 parent 7c3852a commit 882f515
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autotweet/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def expand_url(status):

txt = status.text
for url in status.entities['urls']:
txt = txt.replace(url['url'], url['display_url'])
txt = txt.replace(url['url'], url['expanded_url'])

return txt

Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.4.4
-----

- Fix expanding urls.


0.4.3
-----

Expand Down

0 comments on commit 882f515

Please sign in to comment.