A Philadelphia man is going to prison after pleading guilty to cyberstalking and making racial threats against a city worker in 2024.