pidgin-twitter

changeset 354:ff078879e68e

include in_reply_to information to the internal tag even in posting message
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 18 May 2010 00:12:59 +0900
parents 29084c253e68
children 0fe895195132
files twitter_api.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/twitter_api.c	Fri Apr 16 12:28:22 2010 +0900
     1.2 +++ b/twitter_api.c	Tue May 18 00:12:59 2010 +0900
     1.3 @@ -278,7 +278,8 @@
     1.4               PurpleMessageFlags flag = PURPLE_MESSAGE_RECV;
     1.5  
     1.6               msg = g_strdup_printf("%s: %s pttag=%llu:%llu:%s",
     1.7 -                                   st->screen_name, st->text,
     1.8 +                                   st->screen_name,
     1.9 +                                   st->text,
    1.10                                     (long long unsigned int)st->id,
    1.11                                     (long long unsigned int)st->in_reply_to_status_id,
    1.12                                     st->in_reply_to_screen_name ? st->in_reply_to_screen_name : "");
    1.13 @@ -471,9 +472,11 @@
    1.14          xmlFreeDoc(doc);
    1.15          xmlCleanupParser();
    1.16  
    1.17 -        m = g_strdup_printf("%s pttag=%llu:0:",
    1.18 +        m = g_strdup_printf("%s pttag=%llu:%llu:%s",
    1.19                              tm->status,
    1.20 -                            (long long unsigned int)st->id);
    1.21 +                            (long long unsigned int)st->id,
    1.22 +                            (long long unsigned int)st->in_reply_to_status_id,
    1.23 +                            st->in_reply_to_screen_name ? st->in_reply_to_screen_name : "");
    1.24  
    1.25          purple_conv_im_write(conv->u.im,
    1.26                               purple_account_get_username(tm->account),