# Undeleted Posts Does Not Reduce Deleted Post Count

**URL:** https://meta.discourse.org/t/undeleted-posts-does-not-reduce-deleted-post-count/93053
**Category:** Bug
**Created:** [July 25, 2018, 12:44am UTC](https://meta.discourse.org/t/undeleted-posts-does-not-reduce-deleted-post-count/93053 "2018-07-25T00:44:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rhrmn](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rhrmn](https://meta.discourse.org/u/rhrmn)
#### Post date: [July 25, 2018, 12:44am UTC](https://meta.discourse.org/t/undeleted-posts-does-not-reduce-deleted-post-count/93053/1 "2018-07-25T00:44:29Z")

</div>

@tgxworld When I undelete a post on Discourse it does not reduce the deleted post count on my profile.

Repro Steps:

1. Go to your user profile and note number of deleted posts on banner.
2. Create a post.
3. Delete the post.
4. Go to your user profile and note number of deleted posts on banner.
5. Go to deleted post and undelete.
6. Go to your user profile and note number of deleted posts on banner.

The bug is the deleted post count in #4 and #6 is the same, when actually #6 should be 1 deleted post less than #4.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [August 8, 2018, 8:39am UTC](https://meta.discourse.org/t/undeleted-posts-does-not-reduce-deleted-post-count/93053/3 "2018-08-08T08:39:03Z")

</div>

@rhrmn I’m unable to reproduce this on [http://try.discourse.org/](http://try.discourse.org/). The count for my user profile is correctly updated when I delete and recover a post.

---

<div class="post-metadata">

### Author: ![rhrmn](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rhrmn](https://meta.discourse.org/u/rhrmn)
#### Post date: [August 8, 2018, 1:46pm UTC](https://meta.discourse.org/t/undeleted-posts-does-not-reduce-deleted-post-count/93053/4 "2018-08-08T13:46:01Z")

</div>

It may be an issue with the Discourse forum at [https://forums.ageofempires.com](https://forums.ageofempires.com).

Would you be willing to create a test account there and try it? I do not know Discourse well enough to recommend a server fix.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 9, 2018, 12:22am UTC](https://meta.discourse.org/t/undeleted-posts-does-not-reduce-deleted-post-count/93053/5 "2018-08-09T00:22:54Z")

</div>

We are not hosting age of empires so it is hard for us to debug stuff like this there as we have no control over what code they are running and what plugins and customizations.

We need a repro on [https://try.discourse.org](https://try.discourse.org) or on meta (or a site we host)

Can you repro on try? Maybe there is a missing step in your repro?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 10, 2020, 5:47am UTC](https://meta.discourse.org/t/undeleted-posts-does-not-reduce-deleted-post-count/93053/6 "2020-01-10T05:47:38Z")

</div>


