The 26-year-old was jailed for a year after he sparked anger with an expletive-laden post about the sacred holiday.