[libsocialweb/libsocialweb-0.25] plurk-item-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] plurk-item-view: Only try and fetch content if credentials are valid
- Date: Sat, 12 Nov 2011 11:08:57 +0000 (UTC)
commit 72320a6ad6bee96be7d6282943db8e6e0bccdb84
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]