diff 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
line wrap: on
line diff
--- a/icon.c	Wed Dec 10 15:46:30 2008 +0900
+++ b/icon.c	Fri Dec 12 17:43:56 2008 +0900
@@ -611,8 +611,8 @@
     case wassr_service:
         url = g_strdup_printf("http://wassr.jp/user/%s", user_name);
         break;
-    case identica_service:
-        url = g_strdup_printf("http://identi.ca/%s", user_name);
+    case identica_service: /* make use of Version0 API */
+        url = g_strdup_printf("http://identi.ca/%s/avatar/96", user_name);
         break;
     case jisko_service:
         url = g_strdup_printf("http://jisko.net/%s", user_name);
@@ -630,13 +630,12 @@
         /* gotdata will be released in got_icon_cb */
         if(service == twitter_service ||
            service == wassr_service ||
-           service == identica_service ||
            service == jisko_service) {
             data->fetch_data =
                 purple_util_fetch_url_request(url, TRUE, NULL, TRUE, NULL,
                                               TRUE, got_page_cb, gotdata);
         }
-        else { /* unused */
+        else { /* typically, identica_service */
             data->fetch_data =
                 purple_util_fetch_url_request(url, TRUE, NULL, TRUE, NULL,
                                               FALSE, got_icon_cb, gotdata);