I suggested two edits:
Both suggestions were declined. That was a fear I had because they weren’t just fixing formatting or cleaning out unnecessary content. Let me explain.
For the first question, the OP made an answer (Possible link 10k+) to reply to my comment. The answer contained the code, which didn't answer their original question. So, I flagged it as NAA. The flag was accepted, and the answer removed.
Then, when reviewers in suggested edits saw my post, they unfortunately didn't see the answer where the code came from. I understand why they rejected it without the full context.
For the second question, it's the same thing. I asked for more details in comment. I received them. Then, I edited the question to clean up the code, adding only the minimal reproducible example (instead of copying/pasting the edited class, or having a link that will be deleted in few weeks). I explained this in the explanation for the suggested edit. The first reviewer saw this, understood, and approved the suggestion, but not the others.
Both times, the code came from the OP, but they didn't take the time to edit their question. I took the time to do it, by including links to their code (or mentioning where it comes from).
Was that a good idea? Should I just ask for the OP to edit, and not do it myself? Or am I right, and these edits should have been approved?
UPDATE: The OP of the first question just approved the edit, so it seems good x). What about the second question?