# Deleting posts doesn't reset last activity date

**URL:** <https://meta.discourse.org/t/deleting-posts-doesnt-reset-last-activity-date/31348>\
**Category:** Bug\
**Created:** [23 يوليو 2015، 11:39ص UTC](https://meta.discourse.org/t/deleting-posts-doesnt-reset-last-activity-date/31348 "2015-07-23T11:39:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![davemaxwell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davemaxwell/32/108393_2.png) [@davemaxwell](https://meta.discourse.org/u/davemaxwell)\
**Post date:** [23 يوليو 2015، 11:39ص UTC](https://meta.discourse.org/t/deleting-posts-doesnt-reset-last-activity-date/31348/1 "2015-07-23T11:39:28Z")

</div>

We were having an issue with the auto-close feature where threads which have been dormant for a while weren’t being closed automatically (we have it set to close 30 days after the last activity). Doing some moderating, I have found that deleting the last post in a thread doesn’t reset the last activity date on the thread. So if a spammer wannabe comes in and lays down a crap post two months after the last post, we lose those two months for the auto-close functionality to work.

Edit: It seems to be the “Category” level dates/activity periods which are incorrect (see screenshots in post [#3](https://meta.discourse.org/t/deleting-posts-doesnt-reset-last-activity-date/31348/3))

Example thread: [http://community.sitepoint.com/t/javascript-add-css-to-style-wont-work/190090/18](http://community.sitepoint.com/t/javascript-add-css-to-style-wont-work/190090/18)

Notice how the last post is actually May 20 (deleted post was made and deleted July 21)

 ![](https://global.discourse-cdn.com/meta/original/3X/f/0/f0d2a40c09356d9298b912167f1c070bceafd1d4.png)

This is the category page which shows the last activity period after the post was deleted. It still shows the relative time to the deleted post.

 ![](https://global.discourse-cdn.com/meta/original/3X/a/a/aa30f4dd490871642d8daba6b350dd8dfc0b129a.png)

To recreate:

1. Find an older post (say two months old) and add a post to the thread.
2. Delete the post (I was using the delete spammer functionality but just deleting the post does it as well)
3. Notice that the last activity date will still have the date/time of the deleted post, not the “old” last post.

---

_[View the full topic](https://meta.discourse.org/t/deleting-posts-doesnt-reset-last-activity-date/31348)._
