A court in Thailand on Wednesday sentenced a prominent pro-democracy activist to three years in jail for royal defamation.