Permanently delete not functioning

Hi @JammyDodger

Thanks for your reply.

I see the issue you are talking about, all of this is lining up with current functionality that I’m seeing too.

A few things to add to the observations:

If I refresh on a soft deleted page after 5 minutes has passed, and I permanently delete the post, the topic is still not deleted. I get the modal that you’re seeing and I press OK. For posts other than the original post, it works.

However, if I go to /latest?status=deleted it still comes up in the list of topics. The topics show Replies -1, and if I click on these topics I then see “:frowning: error something went wrong” page.

I did receive a 500 error at one point, this looks like perhaps the topic was still deleting or something and perhaps I tried deleting it while it was in progress:
Looking at the error log this is what I see:

NoMethodError (undefined method `topic_id' for nil:NilClass)
lib/post_destroyer.rb:60:in `destroy'
app/controllers/topics_controller.rb:643:in `destroy'
app/controllers/application_controller.rb:413:in `block in with_resolved_locale'
app/controllers/application_controller.rb:413:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:368:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:209:in `call'
1 Like