Browse Source

also switch the id on retweets; fixes #177

master
Julio Biason 15 years ago
parent
commit
1c6174f8fd
  1. 4
      mitterlib/network/twitter.py

4
mitterlib/network/twitter.py

@ -187,10 +187,14 @@ class TwitterNetworkData(NetworkData):
self.name = retweet_user['name']
self.username = retweet_user['screen_name']
self.avatar = retweet_user['profile_image_url']
self.id = data['retweeted_status']['id']
# also switch the text for the original text.
data['text'] = data['retweeted_status']['text']
# keep the message_time as is, so we have the retweet time, not he
# original message time
# Twitter encodes a lot of HTML entities, which are not good when
# you want to *display* then (e.g., "<" returns to us as "&lt;").
# So we convert this here. Interfaces need to worry about converting

Loading…
Cancel
Save