# post\_count של משתמש הוא אפס ב-webhook עבור משתמש שיש לו פוסטים

**URL:** <https://meta.discourse.org/t/user-post-count-is-zero-in-webhook-for-a-user-that-has-posts/267574>\
**Category:** Development\
**Tags:** webhooks\
**Created:** [7 ביוני,‏ 2023,‏ 7:28pm UTC](https://meta.discourse.org/t/user-post-count-is-zero-in-webhook-for-a-user-that-has-posts/267574 "2023-06-07T19:28:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dpb](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dpb](https://meta.discourse.org/u/dpb)\
**Post date:** [7 ביוני,‏ 2023,‏ 7:28pm UTC](https://meta.discourse.org/t/user-post-count-is-zero-in-webhook-for-a-user-that-has-posts/267574/1 "2023-06-07T19:28:02Z")

</div>

We have a webhook on the event “user\_logged\_in”. The Payload contains the property `post_count` for the user that just logged in. Although the user did write 2 posts, the payload reads `post_count: 0`. This looks like a bug to me.

The receiver of the webhook needs this user stat to decide how to proceed.

The only similar topic I found is this one, might be related but does not talk about the same API: [Category post\_count not incrementing](https://meta.discourse.org/t/category-post-count-not-incrementing/230788)

---

_[View the full topic](https://meta.discourse.org/t/user-post-count-is-zero-in-webhook-for-a-user-that-has-posts/267574)._
