Editing deleted post fails


(Pekka Gaiser) #1

When I edit a deleted post, Discourse accepts the changes and renders them, too, but when I refresh the page the old version is back.

(Edit: I’m on Version 0.9.7 though. Let me try updating to the latest one…)


(Jeff Atwood) #2

I think editing deleted posts is unusually complicated in the code, at least that is what I remember @sam telling me.


(Pekka Gaiser) #3

OK, but then it shouldn’t let me edit it in the first place, but say something like

You can’t edit deleted posts.

instead. (It indeed works fine when I undelete, edit, and delete again.)


(Jeff Atwood) #4

@sam fixed this so staff can edit deleted posts.


(Jeff Atwood) #5