quick_frontend (blog): fixes main item update (comment's data were lost)
This commit is contained in:
parent
bd971186de
commit
e7c0368b13
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue