Discourse misreporting age of posts for deletion

(TechnoBear) #1

We have a number of accounts where Discourse states “Can’t delete all posts. Some posts are older than x days old” but the account - and, indeed, the forum, is not that old.

(Jeff Atwood) #2

I believe this is a bug @neil needs to fix where the actual problem is the number of posts is too large to delete the user but the age of posts is incorrectly shown as the limiting factor.

Confirmed Neil this is still a bug on http://discourse.codinghorror.com/admin/users/lora for example. Even with max delete post age days set to 999999.

(TechnoBear) #3

OK - thanks.

What’s the limit on the number of posts? One of the accounts I know only had 17, which doesn’t seem excessive.

@neil? @codinghorror?

(Neil Lalonde) #4

The default is 15, so bump up the “delete all posts max” setting and you’ll be able to delete that user. I’m going to fix the message in admin.

(TechnoBear) #5

That’s great. Thank you.

(Jeff Atwood) #6

OK close this when fixed. That message is outright wrong and very confusing.

(Neil Lalonde) #7

The fix is pushed. These are the message you can see now:

  • Can’t delete all posts because the user has more than 15 posts. (The delete_all_posts_max setting.)
  • Can’t delete all posts. Some posts are older than 14 days old. (The delete_user_max_post_age setting.)

(Neil Lalonde) #8