mirror of
				https://github.com/MCV-Software/TWBlue.git
				synced 2025-11-04 05:47:05 +00:00 
			
		
		
		
	Display users correctly in longtweets. Fixes #135
This commit is contained in:
		@@ -8,6 +8,7 @@
 | 
			
		||||
* Now TWBlue will use Yandex's translation services instead microsoft translator. ([#132](https://github.com/manuelcortez/TWBlue/issues/132))
 | 
			
		||||
* SndUp users will be able to upload audio in their account by using their API Key again. ([#134](https://github.com/manuelcortez/TWBlue/issues/134))
 | 
			
		||||
* old tweets shouldn't be added as new items in buffers. ([#116,](https://github.com/manuelcortez/TWBlue/issues/116)) ([#133](https://github.com/manuelcortez/TWBlue/issues/133))
 | 
			
		||||
* All mentionned users should be displayed correctly in Twishort's long tweets. ([#116,](https://github.com/manuelcortez/TWBlue/issues/116)) ([#135](https://github.com/manuelcortez/TWBlue/issues/135))
 | 
			
		||||
 | 
			
		||||
## Changes in version 0.90
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -472,7 +472,7 @@ class Session(object):
 | 
			
		||||
   if tweet["message"] == False: return False
 | 
			
		||||
   tweet["twishort"] = True
 | 
			
		||||
   for i in tweet["entities"]["user_mentions"]:
 | 
			
		||||
    if "@%s" % (i["screen_name"] not in tweet["message"]) and i["screen_name"] != tweet["user"]["screen_name"]:
 | 
			
		||||
    if "@%s" % (i["screen_name"]) not in tweet["message"] and i["screen_name"] != tweet["user"]["screen_name"]:
 | 
			
		||||
     if tweet.has_key("retweeted_status") and tweet["retweeted_status"]["user"]["screen_name"] == i["screen_name"]:
 | 
			
		||||
      continue
 | 
			
		||||
     tweet["message"] = u"@%s %s" % (i["screen_name"], tweet["message"])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user