A Thai journalist just freed from detention by the military government has resigned under pressure from his newspaper.

Pravit Rojanaphruk said Wednesday that The Nation newspaper asked him to resign because of pressure it received after he was detained. He said he agreed because he considered the newspaper to be like his own home, which he didn't wish to destroy.

Pravit was detained Sunday by soldiers and held incommunicado until Tuesday for what the military calls "attitude adjustment." He has been a rare outspoken critic, in newspaper columns and on Twitter, of the junta that has ruled since a military coup last year ousted a civilian government. Prime Minister Prayuth Chan-ocha has harshly criticized journalists and other critics of the coup.

No comment was immediately available from the newspaper.