Merge pull request #411 from ping/quoted-status-patch2
Fix issue where is_quote_status is true but there is no quoted_status
This commit is contained in:
commit
6cd13d772e
1 changed files with 1 additions and 1 deletions
|
|
@ -597,7 +597,7 @@ class Twython(EndpointsMixin, object):
|
|||
text = text.replace(tweet['text'][start:end],
|
||||
url_html % (entity['url'], shown_url))
|
||||
|
||||
if expand_quoted_status and tweet.get('is_quote_status'):
|
||||
if expand_quoted_status and tweet.get('is_quote_status') and tweet.get('quoted_status'):
|
||||
quoted_status = tweet['quoted_status']
|
||||
text += '<blockquote class="twython-quote">%(quote)s<cite><a href="%(quote_tweet_link)s">' \
|
||||
'<span class="twython-quote-user-name">%(quote_user_name)s</span>' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue