|
@@ -398,7 +398,7 @@ def serialize_node_for_page(content: Content, context: Context):
|
398
|
398
|
links=[],
|
399
|
399
|
revision_nb = len(content.revisions),
|
400
|
400
|
selected_revision='latest' if content.revision_to_serialize<=0 else content.revision_to_serialize,
|
401
|
|
- history=Context(CTX.CONTENT_HISTORY).toDict(content.get_history()),
|
|
401
|
+ history=Context(CTX.CONTENT_HISTORY).toDict(content.get_history(drop_empty_revision=True)), # nopep8
|
402
|
402
|
is_editable=content.is_editable,
|
403
|
403
|
is_deleted=content.is_deleted,
|
404
|
404
|
is_archived=content.is_archived,
|
|
@@ -475,7 +475,7 @@ def serialize_node_for_thread(item: Content, context: Context):
|
475
|
475
|
workspace = context.toDict(item.workspace),
|
476
|
476
|
comments = reversed(context.toDict(item.get_comments())),
|
477
|
477
|
is_new=item.has_new_information_for(context.get_user()),
|
478
|
|
- history = Context(CTX.CONTENT_HISTORY).toDict(item.get_history()),
|
|
478
|
+ history = Context(CTX.CONTENT_HISTORY).toDict(item.get_history(drop_empty_revision=True)), # nopep8
|
479
|
479
|
is_editable=item.is_editable,
|
480
|
480
|
is_deleted=item.is_deleted,
|
481
|
481
|
is_archived=item.is_archived,
|