The module works great (so thank you!), except: When I import posts with comments, the comments go into the database, but comment_count in node_comment_statistics doesn't seem to be updated to reflect the actual number of comments. So the user sees "Add new comment" instead of "12 comments" or whatever.

CommentFileSizeAuthor
#2 import_typepad-326180.patch1.14 KBtraviscarden

Comments

miss-susan’s picture

I also see this problem. However, it looks like if you unpublish then publish the comments they are picked up in the comment count.

traviscarden’s picture

Title: Comment counts » Doesn't Save Comment Count on Imported Nodes
Status: Active » Needs review
StatusFileSize
new1.14 KB

It looks like someone was trying to update the comment count and such with _comment_update_node_statistics on line 505 of import_typepad.module but commented it out because it wasn't working—because they were passing it the wrong variable. Replace line 505 with the following and it should work:

    _comment_update_node_statistics($currentBlog->nid);

Here's a patch.

berenddeboer’s picture

Status: Needs review » Closed (won't fix)

Version 5 no longer maintained. Sorry.