Changeset - d85cfa46a783
[Not reviewed]
0 1 0
Jan Kaluza - 9 years ago 2016-01-04 12:44:48
jkaluza@redhat.com
Twitter: Do not set status message for buddies not in Friends list
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
backends/twitter/TwitterPlugin.cpp
Show inline comments
 
@@ -731,8 +731,10 @@ void TwitterPlugin::displayTweets(std::string &user, std::string &userRequested,
 
			//Set as status user's last tweet
 
			for(it=lastTweet.begin() ; it!=lastTweet.end() ; it++) {
 
				int t =  it->second;
 
				handleBuddyChanged(user, tweets[t].getUserData().getScreenName(), tweets[t].getUserData().getUserName(), 
 
								   std::vector<std::string>(), pbnetwork::STATUS_ONLINE, tweets[t].getTweet());
 
				if (userdb[user].buddies.count(tweets[t].getUserData().getScreenName()) != 0) {
 
					handleBuddyChanged(user, tweets[t].getUserData().getScreenName(), tweets[t].getUserData().getUserName(), 
 
									std::vector<std::string>(), pbnetwork::STATUS_ONLINE, tweets[t].getTweet());
 
				}
 
			}
 
		}
 

	
0 comments (0 inline, 0 general)