Changeset - 141753a30e46
[Not reviewed]
0 1 0
Sarang Bharadwaj - 13 years ago 2012-06-08 15:01:28
sarang.bh@gmail.com
Removed initial '\n' from timeline response
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
backends/twitter/Requests/TimelineRequest.cpp
Show inline comments
 
@@ -17,7 +17,7 @@ void TimelineRequest::run()
 
		LOG4CXX_INFO(logger, user << " - " << replyMsg.length() << " " << replyMsg << "\n" );
 
		
 
		std::vector<Status> tweets = getTimeline(replyMsg);
 
		timeline = "\n";
 
		timeline = "";
 

	
 
		if(tweets.size() && (since_id == "" || 
 
							 (since_id != "" && tweets[0].getID() != np->getMostRecentTweetID(user)) )) {
 
@@ -31,7 +31,7 @@ void TimelineRequest::run()
 

	
 
void TimelineRequest::finalize()
 
{
 
	if(success && timeline != "\n") {
 
	if(success && timeline != "") {
 
		std::string error = getErrorMessage(replyMsg);
 
		if(error.length()) {
 
			np->handleMessage(user, "twitter-account", error);
0 comments (0 inline, 0 general)