[blam] Item: Use the first link as the ID if it's null
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] Item: Use the first link as the ID if it's null
- Date: Sat, 18 Sep 2010 20:51:21 +0000 (UTC)
commit 500ce16e7bdb8d198fda623ce6168974d48cbae5
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date: Sat Sep 18 21:48:08 2010 +0100
Item: Use the first link as the ID if it's null
src/Item.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Item.cs b/src/Item.cs
index d981df4..72ba0b0 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -42,6 +42,10 @@ namespace Imendio.Blam {
public Item(SyndicationItem item) : base(item)
{
+ if(this.Id == null){
+ this.Id = this.Links[0].Uri.ToString();
+ }
+
if(item.Summary != null && item.Summary.Text != ""){
this.exposed_text = item.Summary;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]