comparison icon.c @ 266:d3e2b2e58828

adapted for laconica 0.6.4 in identi.ca service.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 12 Dec 2008 17:43:56 +0900
parents c2944685ac8e
children 2f053c23ee50
comparison
equal deleted inserted replaced
265:c2944685ac8e 266:d3e2b2e58828
609 url = g_strdup_printf("http://twitter.com/%s", user_name); 609 url = g_strdup_printf("http://twitter.com/%s", user_name);
610 break; 610 break;
611 case wassr_service: 611 case wassr_service:
612 url = g_strdup_printf("http://wassr.jp/user/%s", user_name); 612 url = g_strdup_printf("http://wassr.jp/user/%s", user_name);
613 break; 613 break;
614 case identica_service: 614 case identica_service: /* make use of Version0 API */
615 url = g_strdup_printf("http://identi.ca/%s", user_name); 615 url = g_strdup_printf("http://identi.ca/%s/avatar/96", user_name);
616 break; 616 break;
617 case jisko_service: 617 case jisko_service:
618 url = g_strdup_printf("http://jisko.net/%s", user_name); 618 url = g_strdup_printf("http://jisko.net/%s", user_name);
619 break; 619 break;
620 default: 620 default:
628 gotdata->service = service; 628 gotdata->service = service;
629 629
630 /* gotdata will be released in got_icon_cb */ 630 /* gotdata will be released in got_icon_cb */
631 if(service == twitter_service || 631 if(service == twitter_service ||
632 service == wassr_service || 632 service == wassr_service ||
633 service == identica_service ||
634 service == jisko_service) { 633 service == jisko_service) {
635 data->fetch_data = 634 data->fetch_data =
636 purple_util_fetch_url_request(url, TRUE, NULL, TRUE, NULL, 635 purple_util_fetch_url_request(url, TRUE, NULL, TRUE, NULL,
637 TRUE, got_page_cb, gotdata); 636 TRUE, got_page_cb, gotdata);
638 } 637 }
639 else { /* unused */ 638 else { /* typically, identica_service */
640 data->fetch_data = 639 data->fetch_data =
641 purple_util_fetch_url_request(url, TRUE, NULL, TRUE, NULL, 640 purple_util_fetch_url_request(url, TRUE, NULL, TRUE, NULL,
642 FALSE, got_icon_cb, gotdata); 641 FALSE, got_icon_cb, gotdata);
643 } 642 }
644 g_free(url); url = NULL; 643 g_free(url); url = NULL;