[libsocialweb] twitter-contact-view: Only try and fetch content if credentials are valid
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb] twitter-contact-view: Only try and fetch content if credentials are valid
- Date: Wed, 9 Nov 2011 18:41:34 +0000 (UTC)
commit 8982cf504cf3767761fe85d9558beab3d9da5bec
Author: Rob Bradford <rob linux intel com>
Date: Wed Nov 9 18:11:50 2011 +0000
twitter-contact-view: Only try and fetch content if credentials are valid
services/twitter/twitter-contact-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/services/twitter/twitter-contact-view.c b/services/twitter/twitter-contact-view.c
index 3e23821..d4a9f05 100644
--- a/services/twitter/twitter-contact-view.c
+++ b/services/twitter/twitter-contact-view.c
@@ -398,6 +398,10 @@ _get_ids (SwTwitterContactView *contact_view)
SwService *service;
const char *username;
+ service = sw_contact_view_get_service (SW_CONTACT_VIEW (contact_view));
+ if (!sw_service_has_dynamic_cap (service, CREDENTIALS_VALID))
+ return;
+
call = rest_proxy_new_call (priv->proxy);
if (g_str_equal (priv->query, "people"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]