A recent case illustrates the legal test for assessing a department’s ability to discipline an officer on the basis of personal social media posts