print tweet id when printing tweets.
will be necessary if we ever implement any kind of reply-to-id replying
This commit is contained in:
parent
b748d43bbd
commit
4241071b7e
|
@ -131,14 +131,14 @@ class Twitter(Module):
|
|||
if tweet.retweeted_status:
|
||||
retweet = tweet.retweeted_status
|
||||
if print_source:
|
||||
return '%s (RT %s): %s' % (tweet.user.name.encode('utf-8', 'ignore'), retweet.user.name.encode('utf-8', 'ignore'), retweet.text.encode('utf-8', 'ignore'))
|
||||
return '%s (RT %s): %s [%s]' % (tweet.user.name.encode('utf-8', 'ignore'), retweet.user.name.encode('utf-8', 'ignore'), retweet.text.encode('utf-8', 'ignore'), tweet.id)
|
||||
else:
|
||||
return '(RT %s): %s' % (retweet.user.name.encode('utf-8', 'ignore'), retweet.text.encode('utf-8', 'ignore'))
|
||||
return '(RT %s): %s [%s]' % (retweet.user.name.encode('utf-8', 'ignore'), retweet.text.encode('utf-8', 'ignore'), tweet.id)
|
||||
else:
|
||||
if print_source:
|
||||
return '%s: %s' % (tweet.user.name.encode('utf-8', 'ignore'), tweet.text.encode('utf-8', 'ignore'))
|
||||
return '%s: %s [%s]' % (tweet.user.name.encode('utf-8', 'ignore'), tweet.text.encode('utf-8', 'ignore'), tweet.id)
|
||||
else:
|
||||
return '%s' % (tweet.text.encode('utf-8', 'ignore'))
|
||||
return '%s [%s]' % (tweet.text.encode('utf-8', 'ignore'), tweet.id)
|
||||
|
||||
# vi:tabstop=4:expandtab:autoindent
|
||||
# kate: indent-mode python;indent-width 4;replace-tabs on;
|
||||
|
|
Loading…
Reference in New Issue