I wasn't sure how to title this issue, or categorize it, so I'll better explain what is happening.
We wrote a small module to render the node comments in a block, nothing complicated, we loaded the node and got the comments calling the function comment_node_page_additions. Initially we setup the comments per page to 50, so initially no issues were reported. But when the node had 51 or more comments, the second page will render the first set of 50 comments.
After doing some research we were able to replicate this behavior on the comment module, by adding a second call to this function on the comment_node_view, at the bottom like:
if ($node->comment && $view_mode == 'full' && node_is_page($node) && empty($node->in_preview)) {
$node->content['comments'] = comment_node_page_additions($node);
$node->content['comments'] = comment_node_page_additions($node);
}
We solved this by adding extra logic to avoid doing an extra call to comment_node_view by capturing the node comments on hook_node_view.
Is there another way we could do this?