What does this PR do?
The frontend part is pretty straghtforward: disable the visibility-related buttons if we're editing.
The backend part is… ugly.
As #510 (closed) says, changing the visibility of a note doesn't really work with federation. But, if you edit a note adding sensitive words, or if your user has been marked as "can't post publicly", or similar, then we want to change the visibility of the note.
This change should fix the obvious surface problem (ignoring any visibility
or localOnly
value coming from the frontend or another instance), without making things worse.
But please check my reasoning!!
Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines