# Posts and topics not counted after migration

**URL:** https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812
**Category:** Support
**Created:** [September 6, 2025, 4:33pm UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812 "2025-09-06T16:33:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![nino1904](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nino1904/32/443792_2.png) [@nino1904](https://meta.discourse.org/u/nino1904)
#### Post date: [September 6, 2025, 4:33pm UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812/1 "2025-09-06T16:33:30Z")

</div>

Hey guys,

after migrating from NodeBB with help of [this guide](https://meta.discourse.org/t/migrate-a-nodebb-forum-with-mongodb-to-discourse/) 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?

 ![users](https://global.discourse-cdn.com/meta/original/4X/e/a/4/ea44fade106845f781fe5807977b52df33188a6b.png)

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

 ![top-categories](https://global.discourse-cdn.com/meta/original/4X/1/b/b/1bbf63d2b2d50be35a76017d68326a7318384914.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 6, 2025, 7:08pm UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812/2 "2025-09-06T19:08:22Z")

</div>

I think a task runs that will fix that soon. You might also try

```
rake import:ensure_consistency

```

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 22, 2025, 3:08pm UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812/3 "2025-09-22T15:08:07Z")

</div>

@nino1904 were you able to resolve your issue?

---

<div class="post-metadata">

### Author: ![nino1904](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nino1904/32/443792_2.png) [@nino1904](https://meta.discourse.org/u/nino1904)
#### Post date: [September 22, 2025, 3:30pm UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812/4 "2025-09-22T15:30:37Z")

</div>

I could say yes but I would like to try another migration. I’ve tried a few things that day and suddenly the post counts were there - but way too many. For example in NodeBB a user has like 1.5k posts, in Discourse the user has 2.8k posts.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 23, 2025, 10:31am UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812/5 "2025-09-23T10:31:47Z")

</div>

> [@nino1904](#):
>
> For example in NodeBB a user has like 1.5k posts, in Discourse the user has 2.8k posts.

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.

---

<div class="post-metadata">

### Author: ![nino1904](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nino1904/32/443792_2.png) [@nino1904](https://meta.discourse.org/u/nino1904)
#### Post date: [September 23, 2025, 10:49am UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812/6 "2025-09-23T10:49:51Z")

</div>

> [@pfaffman](#):
>
> Discourse counts pms

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?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 23, 2025, 10:52am UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812/7 "2025-09-23T10:52:55Z")

</div>

> [@nino1904](#):
>
> 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.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [October 23, 2025, 10:53am UTC](https://meta.discourse.org/t/posts-and-topics-not-counted-after-migration/381812/8 "2025-10-23T10:53:01Z")

</div>

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