Can't mark a post as wiki anymore

Ok this is fixed in

https://github.com/discourse/discourse/commit/32846aad2a511d631b3845cf1f72dea7ec689522

There were a couple of problems here:

  1. We were increasing the post’s version of the post client side without considering whether the post’s version was actually increased server side. That was causing all sort of weird rendering patterns because the post version is used to determine whether we show the edit icon.

  2. Marking a post as a wiki was bumping the post’s version which is wrong and results in a client side bug where the edit history window will contain a version without any changes.

9 Likes