1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

added identi.ca support (uses twitter api); spare a json enc/dec when surfing locally

This commit is contained in:
Gabor Adam Toth 2010-02-23 23:42:54 +01:00
parent bcbf2785d8
commit 9421149ffd
9 changed files with 88 additions and 18 deletions

View file

@ -59,6 +59,7 @@ void parse_request_token(string body, mapping headers, int http_status) {
url_parse_query(request_params, body);
if (strlen(request_params["oauth_token"]) && strlen(request_params["oauth_token_secret"])) {
shared_memory("oauth_request_tokens")[request_params["oauth_token"]] = ME;
//P3((">>> adding token: %O to shm: %O\n", request_params["oauth_token"], shared_memory("oauth_request_tokens")))
sendmsg(user, "_notice_oauth_authorize_url", "Open [_url] to perform authorization.",
(["_url": authorize_url + "?oauth_token=" + request_params["oauth_token"]]));
return;