diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-21 20:35:13 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-21 20:35:13 +0100 | 
| commit | e306fbf84aa37ab934c5ea18ccfd75da041af052 (patch) | |
| tree | 6d9928b760c071f479fbf3bfeeaabf9dd58d0b67 | |
| parent | 31db81651fa3ac5d742c3616efaccf43a1ebcaf2 (diff) | |
Fixed a bug that probably (can't test this now since it's down) broke OAuth
setup for identi.ca. Turning on oauth for identi.ca accounts by default now.
| -rw-r--r-- | lib/oauth.c | 2 | ||||
| -rw-r--r-- | protocols/twitter/twitter.c | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/lib/oauth.c b/lib/oauth.c index acbf433e..04949e1b 100644 --- a/lib/oauth.c +++ b/lib/oauth.c @@ -308,6 +308,7 @@ static void oauth_request_token_done( struct http_request *req )  		st->auth_url = g_strdup_printf( "%s?%s", st->sp->url_authorize, req->reply_body );  		oauth_params_parse( ¶ms, req->reply_body );  		st->request_token = g_strdup( oauth_params_get( ¶ms, "oauth_token" ) ); +		st->token_secret = g_strdup( oauth_params_get( ¶ms, "oauth_token_secret" ) );  		oauth_params_free( ¶ms );  	} @@ -337,6 +338,7 @@ static void oauth_access_token_done( struct http_request *req )  	{  		oauth_params_parse( &st->params, req->reply_body );  		st->token = g_strdup( oauth_params_get( &st->params, "oauth_token" ) ); +		g_free( st->token_secret );  		st->token_secret = g_strdup( oauth_params_get( &st->params, "oauth_token_secret" ) );  	} diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 1cf0b0b5..ef49e83a 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -219,7 +219,7 @@ static void twitter_init(account_t * acc)  		def_oauth = "true";  	} else {		/* if( strcmp( acc->prpl->name, "identica" ) == 0 ) */  		def_url = IDENTICA_API_URL; -		def_oauth = "false"; +		def_oauth = "true";  	}  	s = set_add(&acc->set, "auto_reply_timeout", "10800", set_eval_int, acc); | 
