Police have arrested a 20-year-old Los Angeles man who allegedly threatened to shoot a random pedestrian if his Twitter post was retweeted 100 times.

The Los Angeles Times reports Dakkari Dijon McAnuff was booked on suspicion of making criminal threats.

The investigation began Wednesday morning when police officers were notified about a photo on Twitter. It showed a rifle pointed at a Los Angeles street with the caption "100 [retweets] and I'll shoot someone walking."

Investigators said they were able to link McAnuff to the Twitter account and track it to a home in the downtown area, where he was arrested Wednesday.

Police later determined the weapon was an air rifle, which was recovered from the home.

McAnuff's Twitter account has since been taken down.