From 1c6174f8fd275871c41c0a18e3dded6115a09097 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Sun, 3 Jan 2010 11:45:25 -0200 Subject: [PATCH] also switch the id on retweets; fixes #177 --- mitterlib/network/twitter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mitterlib/network/twitter.py b/mitterlib/network/twitter.py index 5aac5d3..a5cbb4e 100644 --- a/mitterlib/network/twitter.py +++ b/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 "<"). # So we convert this here. Interfaces need to worry about converting