/soc/2015/jgeboski/facebook: 602a1c64670a: facebook: ignore disa...

James Geboski <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 602a1c64670a350738147b3fcaa3b7f8eb064777
Author:	 James Geboski <[email protected]>
Date:	 2015-06-28 15:11 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/602a1c64670a

Description:

facebook: ignore disabled contacts

diffstat:

 libpurple/protocols/facebook/api.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff --git a/libpurple/protocols/facebook/api.c b/libpurple/protocols/facebook/api.c
--- a/libpurple/protocols/facebook/api.c
+++ b/libpurple/protocols/facebook/api.c
@@ -1010,8 +1010,12 @@ fb_api_cb_contacts(PurpleHttpConnection 
 		fb_api_user_reset(&user, FALSE);
 
 		str = fb_json_node_get_str(node, "$.represented_profile.id",
-		                           &err);
-		FB_API_ERROR_CHK(api, err, goto finish);
+		                           NULL);
+
+		if (G_UNLIKELY(str == NULL)) {
+			continue;
+		}
+
 		user.uid = FB_ID_FROM_STR(str);
 		g_free(str);
 

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.