From e7c0368b13ed53db8c0e9452e5724c3abba0b959 Mon Sep 17 00:00:00 2001 From: souliane Date: Mon, 22 Feb 2016 13:15:02 +0100 Subject: [PATCH] quick_frontend (blog): fixes main item update (comment's data were lost) --- frontends/src/quick_frontend/quick_blog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/src/quick_frontend/quick_blog.py b/frontends/src/quick_frontend/quick_blog.py index fc03b6aa..df112f92 100644 --- a/frontends/src/quick_frontend/quick_blog.py +++ b/frontends/src/quick_frontend/quick_blog.py @@ -248,7 +248,8 @@ class Entry(EntriesManager): """Send entry according to parent QuickBlog configuration and current level""" # keys to keep other than content*, title* and tag* - keys_to_keep = ('id', 'comments', 'author', 'author_jid', 'published') + # FIXME: see how to avoid comments node hijacking (someone could bind his post to another post's comments node) + keys_to_keep = ('id', 'comments', 'author', 'author_jid', 'published', 'comments_node', 'comments_service') mb_data = {} for key in keys_to_keep: @@ -269,8 +270,7 @@ class Entry(EntriesManager): raise NotImplementedError if self.level == 0: - if self.new: - mb_data["allow_comments"] = C.BOOL_TRUE + mb_data["allow_comments"] = C.BOOL_TRUE if self.blog.new_message_target == C.GROUP: common.iter2dict('group', self.blog.targets, mb_data)