TOPEKA, Kan. (AP) — The Kansas Court of Appeals says the University of Kansas can't expel a student for offensive tweets he sent from off campus. The court ruled Friday that Navid Yeasin must be reinstated. Yeasin was expelled in 2013 after posting several tweets about his ex-girlfriend. The university said the tweets violated a no-contact order it had issued prohibiting Yeasin from having any contact, including electronic or written communication, with the woman. The Lawrence Journal-World reports that the university argued it had to extend its student code of conduct to off-campus behavior to comply with federal law that prohibits discrimination based on sex, including sexual harassment, at educational institutions. The court rejected the argument, saying it was "obvious" the university can control student conduct only on campus or at university-sponsored events.