# Personal Message notification showing incorrect reply count

**URL:** https://meta.discourse.org/t/personal-message-notification-showing-incorrect-reply-count/313383
**Category:** Development
**Tags:** rest-api, personal-messages
**Created:** [June 24, 2024, 1:44pm UTC](https://meta.discourse.org/t/personal-message-notification-showing-incorrect-reply-count/313383 "2024-06-24T13:44:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Farhan\_Hossen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/farhan_hossen/32/344620_2.png) [@Farhan\_Hossen](https://meta.discourse.org/u/Farhan_Hossen)
#### Post date: [June 24, 2024, 1:44pm UTC](https://meta.discourse.org/t/personal-message-notification-showing-incorrect-reply-count/313383/1 "2024-06-24T13:44:55Z")

</div>

Hi everyone!  
I’m sending a private message through the user api. using the username ‘system’’

```javascript
 const postData = {
        title: messageTitle,
        raw: messageBody,
        username: 'system',
        category: 22,
        target_recipients,
        archetype: 'private_message',
        is_warning: true,
        status: 'archived',
        enabled: false,
    };

    // start sending message
    try {
        const response = await fetch(endpoint, {
            method: 'POST',
            headers: getHeaders(),
            body: JSON.stringify(postData),
        });

        // Convert the response to JSON
        const data = await response.json();
        return data;
    } catch (error) {
        return { errors: ['something went wrong while sending PM'] };
    }

```

However, in the notification, it’s showing ‘2 replies’

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/2/2/e2298445eee159c88e80e9bd8f138ca2ea92eae0.png)

But there are actually no replies

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/8/e/c8e3c2044d32f56e3433d5924d168805fc16c737.png)  
What’s even stranger is that this issue only occurs when I send a PM from the live site. Testing from localhost does not trigger the problem.  
 ![image](https://global.discourse-cdn.com/meta/original/4X/0/0/9/0099ef4f60bf0d20dbdac277b0cbc7bc11c2e338.png)

Any idea?

---

<div class="post-metadata">

### Author: ![Farhan\_Hossen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/farhan_hossen/32/344620_2.png) [@Farhan\_Hossen](https://meta.discourse.org/u/Farhan_Hossen)
#### Post date: [June 27, 2024, 3:51am UTC](https://meta.discourse.org/t/personal-message-notification-showing-incorrect-reply-count/313383/2 "2024-06-27T03:51:21Z")

</div>

Hi, Anyone was able to reproduce?
