Earlier today a question was answered with a code-dump and no explanation or exposition. The code had been copied directly from an external site, without any comment or attribution. The answerer had posted a comment under the main question with a link to the code, which is how I found that the answer had been copied. I flagged the question with a custom moderator flag:
This answer is not only a simple code dump, but it is copied and pasted directly from a solution posted on an external site without attribution.
I also posted a comment under the answer about this being a code-dump without explanation or attribution, and that it was not the answerer's code, but had been copied from an external site.
The answerer responded quickly, saying that it was in fact their code, and that the link was to the answerer's blog. I was in the process of writing a comment to apologize for suggesting that they had posted someone else's code, when the answer (which had 5 downvotes) was removed. Shortly after that, the question was also removed. I was considering retracting the flag, but the answer was removed too quickly, and the flag still seemed to apply given that the answer provided no attribution or context for the copied code.
My flag was declined, with the reason:
That blog is by the same author.
It was not at all obvious, to me at least, that the blog belonged to the answerer until they stated this in the comments. But even granting that the answerer was posting their own code, I thought that posting any content copied from an external site without attribution is cause for a flag, and in this case since there was no context, but only the copied code, it seemed like an obvious flag.
Answers which are obvious plagiarism should be flagged. But should answers which consist solely of code copied from an external site be flagged? I was under the impression that there is an unwritten rule that any material copied from any external site must be attributed. Did I flag incorrectly, or was I wrong altogether in flagging this question?