If the memo was against the code of conduct, why did they wait one month to take action?
A better response from HR would have been to tell him: "this may violate our code of conduct - could you please take it down for the moment while we discuss amongst HR".
This could have turned into a reasonable internal discussion than a media circus.