A member of Gen Z with a troubled past will do serious time for posting military secrets about Ukraine on social media.