[blam] Save content:encoded in the DB



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]