[libsocialweb/libsocialweb-0.25] sina-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] sina-item-view: Only try and fetch content if credentials are valid
- Date: Sat, 12 Nov 2011 11:09:02 +0000 (UTC)
commit a7a4f3e6b22a41dc99e8bc295839a1a60adb4cf4
Author: Rob Bradford <rob linux intel com>
Date: Thu Nov 10 18:48:15 2011 +0000
sina-item-view: Only try and fetch content if credentials are valid
services/sina/sina-item-view.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/services/sina/sina-item-view.c b/services/sina/sina-item-view.c
index 29271a6..ace7947 100644
--- a/services/sina/sina-item-view.c
+++ b/services/sina/sina-item-view.c
@@ -386,6 +386,11 @@ _get_status_updates (SwSinaItemView *item_view)
{
SwSinaItemViewPrivate *priv = GET_PRIVATE (item_view);
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]