Skip to content

Commit ff4655c

Browse files
author
ping
committed
Fix html_for_tweet for pre-quote implementation tweet html
1 parent c59de5c commit ff4655c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

twython/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def html_for_tweet(tweet, use_display_url=True, use_expanded_url=False, expand_q
597597
text = text.replace(tweet['text'][start:end],
598598
url_html % (entity['url'], shown_url))
599599

600-
if expand_quoted_status and tweet['is_quote_status']:
600+
if expand_quoted_status and tweet.get('is_quote_status'):
601601
quoted_status = tweet['quoted_status']
602602
text += '<blockquote class="twython-quote">%(quote)s<cite><a href="%(quote_tweet_link)s">' \
603603
'<span class="twython-quote-user-name">%(quote_user_name)s</span>' \

0 commit comments

Comments
 (0)