Hi, I’m only now noticing this now – I guess I haven’t done the “role play as a user with fewer permissions” thing often enough in our forum – but this seems to be a significant UI regression,[1] and also I’m having a very hard time understanding why the diffs were ever made invisible in the first place!
For all I can tell, it might be connected to SECURITY: Hidden post revisions leak through adjacent visible diffs · discourse/discourse@1f26c11 · GitHub, but this is remarkably hard to actually figure out (without trying to start to understand the code in-depth), because this “GHSA-q456-4f8q-42vx” advisory is very unclear about what the “security” issue is supposed to have been in the first place o.O
Has this all started just as a fencepost problem, and with a dumb false security issue that never was an issue in the first place!? The commit I linked above introduces a logic called “suppress_hidden_diffs”. But diffs were never meant to be hidden, were there? The UI is for hiding revisions (which are the fence posts, not the fences; i.e. the historical states, not the diffs between them).
I used to commonly use hidden revisions also just to clean up edit histories; e.g. to incorporate a later typo fix with the previous one; or to do a revert and remove two history entries to make it disappear from history
this is particularly annyoing as it retroactively (majorly) changes how all existing and hand-tested cases of making edit histories look nice are displayed ↩︎