[libsocialweb/libsocialweb-0.25] 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/libsocialweb-0.25] twitter-contact-view: Only try and fetch content if credentials are valid
- Date: Sat, 12 Nov 2011 11:08:42 +0000 (UTC)
commit 7c0eea8f1111949a35c20b790ca4a3e34c24a4af
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 b93a74c..36871c9 100644
--- a/services/twitter/twitter-contact-view.c
+++ b/services/twitter/twitter-contact-view.c
@@ -401,6 +401,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]