Posts niet meegeteld na migratie

Hey guys,

after migrating from NodeBB with help of this guide using the NodeBB migration script everything looks good - all the categories, topics, posts etc. are there.

But I’ve noticed that every user has zero posts counted by Discourse. A user for example has 500 likes but 0 posts in the users overview. As all the posts are there, is there maybe a function to get the post count updated?

On the other hand, on a users profile the topics and posts in top categories are counted:

Ik denk dat er binnenkort een taak wordt uitgevoerd die dat oplost. Je kunt ook proberen

rake import:ensure_consistency
4 likes

@nino1904 heb je je probleem kunnen oplossen?

1 like

Ik zou ja kunnen zeggen, maar ik wil graag nog een migratie proberen. Het punt is dat ik die dag een paar dingen heb geprobeerd en plotseling waren de post-aantallen er wel - maar veel te veel. Bijvoorbeeld, in NodeBB heeft een gebruiker ongeveer 1,5k posts, in Discourse heeft de gebruiker 2,8k posts.

1 like

Could discourse be importing deleted posts? That’s a big difference, though.

Another possibility is that Discourse counts pms and public posts and the other system counts them separately.

1 like

Good point, NodeBB does not count private messages. But private messages are not getting imported so not sure about that. By the way, why does Discourse count private messages as posts?

I’m not 100% sure that it does, but they are on the same posts table. I don’t know if the post count you’re looking at counts just the regular posts or all of them.

1 like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.