[blam] Save content:encoded in the DB
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] Save content:encoded in the DB
- Date: Wed, 23 Mar 2011 23:09:29 +0000 (UTC)
commit 17ee69aff6eb92386648bfaf0f9da834ad2e053d
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date: Thu Mar 24 00:07:35 2011 +0100
Save content:encoded in the DB
Store the contents of content:encoded in the summary field so it gets
saved to disk.
Signed-off-by: Carlos MartÃn Nieto <carlos cmartin tk>
src/Item.cs | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/Item.cs b/src/Item.cs
index f09b42e..8d5e088 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -112,9 +112,10 @@ namespace Imendio.Blam {
break;
}
- if(ext.OuterName == "encoded"){
- exposed_text = new TextSyndicationContent(ext.GetObject<string>());
- }
+ if(ext.OuterName == "encoded"){ /* Only executed on a new entry */
+ item.Summary = new TextSyndicationContent(ext.GetObject<string>());
+ exposed_text = item.Summary;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]