Merge pull request #397 from ping/quoted_status_patch
Fix html_for_tweet for pre-quote implementation
This commit is contained in:
commit
885051acdc
1 changed files with 1 additions and 1 deletions
|
|
@ -597,7 +597,7 @@ class Twython(EndpointsMixin, object):
|
||||||
text = text.replace(tweet['text'][start:end],
|
text = text.replace(tweet['text'][start:end],
|
||||||
url_html % (entity['url'], shown_url))
|
url_html % (entity['url'], shown_url))
|
||||||
|
|
||||||
if expand_quoted_status and tweet['is_quote_status']:
|
if expand_quoted_status and tweet.get('is_quote_status'):
|
||||||
quoted_status = tweet['quoted_status']
|
quoted_status = tweet['quoted_status']
|
||||||
text += '<blockquote class="twython-quote">%(quote)s<cite><a href="%(quote_tweet_link)s">' \
|
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>' \
|
'<span class="twython-quote-user-name">%(quote_user_name)s</span>' \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue