Accepting "custom" flag returns 500 if post was edited in the meantime

There is a flag. It’s a custom one with a message from a user:

(Some other user didn’t format his code as code, so the post is pretty unreadable and 17 screens long.)

I agree, so I open the post and edit it.
Now I have to close the flag. I do so by clicking “Agree” which brings up this modal:
image

As I don’t want to hide the post, I click “Agree with flag”.

I get this:
image

Here is a screenshot of Chrome devtools network panel:

First the flag is hidden, but if I reload the list it appears again.

Here is the response of the failing request in detail:
image

1 Like

Feels pretty similar to

2 Likes

Possibly can we repro this @eviltrout?

Legit bug, fixed here:

https://github.com/discourse/discourse/commit/530624d438b863c4830936f091637370ce3dde8a

7 Likes

This topic was automatically closed after 27 hours. New replies are no longer allowed.