# HG changeset patch # User souliane # Date 1456143302 -3600 # Node ID 446a1539c207d8a07cc9e2f0aaa986f1bb2dc166 # Parent d8c6c55aafd742a69fc32c06f7544c867704834b quick_frontend (blog): fixes main item update (comment's data were lost) diff -r d8c6c55aafd7 -r 446a1539c207 frontends/src/quick_frontend/quick_blog.py --- a/frontends/src/quick_frontend/quick_blog.py Thu Feb 18 15:41:47 2016 +0100 +++ b/frontends/src/quick_frontend/quick_blog.py Mon Feb 22 13:15:02 2016 +0100 @@ -248,7 +248,8 @@ """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 @@ 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)