An action for damages shall not lie against the editor, publisher, or proprietor of a newspaper or periodical for publication of a report, proceedings or other matter published at the instance of a public officer acting in compliance with law.