[libsocialweb] myspace-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] myspace-item-view: Only try and fetch content if credentials are valid
- Date: Sat, 12 Nov 2011 10:54:26 +0000 (UTC)
commit fcf57372977093f12eaf35464331931fd5e8c271
Author: Rob Bradford <rob linux intel com>
Date: Thu Nov 10 18:47:23 2011 +0000
myspace-item-view: Only try and fetch content if credentials are valid
services/myspace/myspace-item-view.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/services/myspace/myspace-item-view.c b/services/myspace/myspace-item-view.c
index 0c51a7e..0b52717 100644
--- a/services/myspace/myspace-item-view.c
+++ b/services/myspace/myspace-item-view.c
@@ -411,6 +411,12 @@ _get_status_updates (SwMySpaceItemView *item_view)
SwMySpaceItemViewPrivate *priv = GET_PRIVATE (item_view);
GHashTable *params = NULL;
SwSet *set;
+ SwService *service;
+
+ service = sw_item_view_get_service (SW_ITEM_VIEW (item_view));
+
+ if (!sw_service_has_dynamic_cap (service, CREDENTIALS_VALID))
+ return;
set = sw_item_set_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]