Browse Source

changed where the prefix is generated to get the proper one when you reply to reposts

master
Julio Biason 14 years ago
parent
commit
ea65108ea2
  1. 6
      mitterlib/network/twitter.py

6
mitterlib/network/twitter.py

@ -137,8 +137,6 @@ class TwitterNetworkData(NetworkData):
self.link = 'http://twitter.com/%s/status/%s' % (
self.author.username, self.id)
self.reply_prefix = '@' + self.author.username + ' '
if 'protected' in data['user']:
# twitter protects all messages from a user, not per message.
self.protected = data['user']['protected']
@ -163,6 +161,10 @@ class TwitterNetworkData(NetworkData):
# keep the message_time as is, so we have the retweet time, not he
# original message time
# set the prefix here, so we can have the proper author even on
# reposts.
self.reply_prefix = '@' + self.author.username + ' '
# 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