The problem here doesn't seem to be the restraining order itself, it seems to be -- if the description of how the invite in question could have been generated is correct -- that the police made an arrest without anything approaching probable cause to suspect that the arrestee had done anything prohibited by the order or otherwise criminal.