# لماذا يختلف عدد المشاركات بين صفحة المشرف و about.json؟

**URL:** https://meta.discourse.org/t/why-post-count-differs-on-admin-page-and-about-json/84578
**Category:** Support
**Created:** [4 أبريل 2018، 3:31م UTC](https://meta.discourse.org/t/why-post-count-differs-on-admin-page-and-about-json/84578 "2018-04-04T15:31:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)
#### Post date: [4 أبريل 2018، 3:31م UTC](https://meta.discourse.org/t/why-post-count-differs-on-admin-page-and-about-json/84578/1 "2018-04-04T15:31:01Z")

</div>

Hi, I found that post count for the latest 30 days in about.json and admin page are different 6242 vs 5562:

 ![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://global.discourse-cdn.com/meta/original/3X/c/1/c1f963030d503040c17f5b5101141c50783fa74a.png)  
 ![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://global.discourse-cdn.com/meta/original/3X/8/9/89fe2f6c8808ba5beaf1060fefadc97491f58891.png)

Why? Topic count is equal. I tried to do some calculations but did not find any logic.

Discourse 1.9.4

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [1 مايو 2018، 9:02م UTC](https://meta.discourse.org/t/why-post-count-differs-on-admin-page-and-about-json/84578/2 "2018-05-01T21:02:17Z")

</div>

The post count is calculated differently on the About page than it is on the Admin Dashboard. On the About page the post count is calculated with `Post.count`. The query that is used for the 7 day and 30 day periods is similar to this. It will return all posts, including PMs. On the Admin Dashboard the post count is calculated with this:

```plaintext
Post.public_posts.where(post_type: Post.types[:regular])

```

This will exclude private messages from the post count. It will also exclude moderator action, small action, and whisper posts from the post count.

---

<div class="post-metadata">

### Author: ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)
#### Post date: [3 مايو 2018، 8:36ص UTC](https://meta.discourse.org/t/why-post-count-differs-on-admin-page-and-about-json/84578/3 "2018-05-03T08:36:28Z")

</div>

@simon, thank you for the explanation!

We used to use `about.json` for statistics on our website. Now we can explain the difference 🙂. Topics number is approx.equal, and posts number includes small actions (assignments and un-assigments, usually +2 per topic, etc).

Solved for me,  
Ivan

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [8 يونيو 2024، 12:37م UTC](https://meta.discourse.org/t/why-post-count-differs-on-admin-page-and-about-json/84578/4 "2024-06-08T12:37:31Z")

</div>

تم إغلاق هذا الموضوع تلقائيًا بعد 2256 يومًا. لم يعد يُسمح بالردود الجديدة.
