/soc/2015/jgeboski/facebook: 602a1c64670a: facebook: ignore disa...
James Geboski
jgeboski at gmail.com
Sun Jun 28 15:14:56 EDT 2015
Changeset: 602a1c64670a350738147b3fcaa3b7f8eb064777
Author: James Geboski <jgeboski at gmail.com>
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);
More information about the Commits
mailing list