Skip to content

Commit 885051a

Browse files
Merge pull request #397 from ping/quoted_status_patch
Fix html_for_tweet for pre-quote implementation
2 parents c59de5c + ff4655c commit 885051a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)