[libsocialweb] plurk-item-view: Only try and fetch content if credentials are valid



commit f1bb4d2e73604e0f087236a70ebc39d497de6744
Author: Rob Bradford <rob linux intel com>
Date:   Thu Nov 10 18:47:44 2011 +0000

    plurk-item-view: Only try and fetch content if credentials are valid

 services/plurk/plurk-item-view.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/services/plurk/plurk-item-view.c b/services/plurk/plurk-item-view.c
index e074909..99fe430 100644
--- a/services/plurk/plurk-item-view.c
+++ b/services/plurk/plurk-item-view.c
@@ -417,6 +417,11 @@ _get_status_updates (SwPlurkItemView *item_view)
 {
   SwPlurkItemViewPrivate *priv = GET_PRIVATE (item_view);
   RestProxyCall *call;
+  SwService *service;
+
+  service = sw_item_view_get_service (SW_ITEM_VIEW (item_view));
+  if (!sw_service_has_dynamic_cap (service, CREDENTIALS_VALID))
+    return;
 
   call = rest_proxy_new_call (priv->proxy);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]