I only did a quick search, but here is a discussion of the Sedition Act (which was actually a part of the Espionage Act), repealed in 1921. (As I recall, it was repealed by Congress on Wilson's last day as president.)
www2.library.unr.edu/dept/bgic/ragi_new.html (This appears to be a publication of the history department at the University of Nevada. Bold mine.)
In April 1917 President Wilson issued an Executive Order establishing a loyalty test for government employees. In effect, government employees were required to support government policy. Any employee whose conduct, speech or sympathy was judged inimical to the public welfare, by his/her supervisor, was liable to immediate dismissal. The reasons for the dismissal were to be entered into a confidential record, which could be inspected by the Civil Service Commission. In effect, suspect persons (and their associates) could be blacklisted from government employment.[4]The following year, Congress passed the Sedition Act of 1918, which criminalized disloyal, profane, scurrilous or abusive language about the form of government of the United States, or the Constitution of the United States, and prohibited speech that would urge, incite or advocate any curtailment of production in this country of anything. . .necessary or essential to the prosecution of the war. Congress repealed the Sedition Act in 1921.
And here is a footnote entry from a publication of the law school at Indiana University:
www.law.indiana.edu/ilj/v73/no2/beall.html (Bold mine)
38. Sedition Act of 1918, Pub. L. No. 65-150, § 3, 40 Stat. 553, 553-54 (making it a crime to utter language intended to bring the United States government into contempt, scorn, or disrepute) (repealed 1921).I know these are not very commanding sources, but at least the law school entry has the exact statute citation, in case you'd like to research it further.