The Paisley Daily Express (that's a Scottish city near Glasgow) has faced threats of lawsuits and had 'an office visit' since taking the bold decision to name social media posters who expressed extreme views on 50 reguees being housed in the area.
These may well fall foul of hate crime laws, which have seen jail terms handed out - most frequently for racist abuse of footballers such as Stan Collymore (retired, now a TalkSport Radio commentator).
Is this compatible with the Editor's Code clauses on privacy?
Yes. The people named and shamed posted on public forums, particularly Facebook, from where the paper got biographical details and pictures. They clearly hadn't set their profiles to private.
It's worth comparing this to the NoTW's past name and shame campaigns, which at best bent the law, never mind the Code clause, and quite purposefully whipped up a moral panic which saw paediatricians attacked by illiterate mobs.
See article. NB: features asterisked strong language.