aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/oauth.c2
-rw-r--r--protocols/twitter/twitter.c2
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( &params, req->reply_body );
st->request_token = g_strdup( oauth_params_get( &params, "oauth_token" ) );
+ st->token_secret = g_strdup( oauth_params_get( &params, "oauth_token_secret" ) );
oauth_params_free( &params );
}
@@ -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);