# HG changeset patch # User Richard Laager # Date 1145985585 0 # Node ID 87b027bb1f158d45913dd6f4f3716305673c0aee # Parent 6a86f4ec744e83c770b27b44feec7b12babd7051 [gaim-migrate @ 16094] SF Patch #1462332 from cbanal "When updating an avatar and the accounts vcard / info is empty. The resulting vCard xml that is sent does not contain the proper attributes. This causes the vCard update to be ignored by the jabber server." I'm not 100% positive about this, but it seems right. committer: Tailor Script diff -r 6a86f4ec744e -r 87b027bb1f15 src/protocols/jabber/buddy.c --- a/src/protocols/jabber/buddy.c Tue Apr 25 17:15:00 2006 +0000 +++ b/src/protocols/jabber/buddy.c Tue Apr 25 17:19:45 2006 +0000 @@ -362,6 +362,7 @@ JabberStream *js = gc->proto_data; xmlnode *vc_node; char *avatar_file = NULL; + struct tag_attr *tag_attr; if(js->avatar_hash) g_free(js->avatar_hash); @@ -375,6 +376,8 @@ if(!vc_node && avatar_file) { vc_node = xmlnode_new("vCard"); + for(tag_attr = vcard_tag_attr_list; tag_attr->attr != NULL; ++tag_attr) + xmlnode_set_attrib(vc_node, tag_attr->attr, tag_attr->value); } if(vc_node) {