New user's that mark a solution cannot be deleted

Over on the Home Assistant Discourse server, we’ve had some issues detailed here, and @Heliosurge suggested that I create an issue here with the solved tag.

Problem:

When a new user creates a topic and a single reply marked as a solution, the user cannot be deleted from the review wizard. The server will return a 500 error. If the moderator goes in and removes the solution check, the user can be deleted.

To replicate:

  1. Create new user.
  2. Create Topic with any body
  3. Create Reply with any text.
  4. Mark reply as the solution.
  5. Flag the topic as spam for moderation.
  6. (as moderator) approve flag by choosing the option to delete the user (or delete block).
  7. A 500 server error will appear.
6 Likes

Thanks for the report, we will have a look at this over the next few weeks!

3 Likes

Hello @petr0

I’m trying to reproduce this bug but I’m unable to do so on my instance. Do you have more details about the 500 error that you’re getting? There should be an error entry in /logs with a timestamp that corresponds to the time you attempt to delete the user. If you can share the details in the backtrace and info tab, it would make it much easier to figure out exactly where the problem is.