A man ran from Pat’s King of Steaks after throwing a cheesesteak through its service window around dinnertime Wednesday. But the camera he carried left an online trail behind him.

Philadelphia police said Friday that the man, who turned himself in Thursday, was charged with harassment, a summary offense. Police declined to identify him, and it not clear what prompted him to surrender.

The video he apparently made of the encounter had surfaced on YouTube and Instagram, where Pat’s owner Frank Olivieri said his information-technology team traced it to accounts filled with pranks, music, and Philadelphia street content.

“He wanted to be famous,” Olivieri said. “He got exactly what he asked for. Now he needs to be accountable for his actions and his words.”

The YouTube account, under the name h4ll0w33n, presented the episode as a food review titled “I Threw This Cheesesteak in His Face Geno’s Steaks,” misidentifying the stand with the name of another landmark eatery across the intersection of Ninth Street, Wharton Street, and Passyunk Avenue.

A screenshot of the video’s thumbnail showed what appeared to be an AI-generated image of a cheesesteak flying into a man’s face, with “THIS CHEESESTEAK SUCKED!” in large type and “YAM TV” beneath it.

By Friday morning, the video was unavailable. YouTube said the account associated with it had been terminated.

An Instagram account using the name @h4ll0w33n___ remained online with about 10,500 followers. The video also appeared on a newly created Instagram account called YAM TV, which described itself as “The Reality Food Critic Show” covering Philadelphia and beyond. Neither account disclosed the man’s name. No one from the accounts replied to The Inquirer’s messages requesting comment.

Olivieri said his IT team searched online using a photograph of the man and found the accounts after he posted his recording.

“How brazen are you to assault somebody and then post it?” Olivieri said. “Thank God for stupidity.”

Olivieri had offered a $5,000 reward Thursday for information leading to the man’s arrest and conviction. On Friday, he said he had allocated the money to someone who contacted him with information.

The episode began shortly before 5 p.m. Wednesday, after the customer ordered a cheesesteak with Cheez Whiz and onions.

Surveillance video shows him sitting at a table outside Pat’s, pulling apart the sandwich with his hands without eating it. He later returned to the window, exchanged words with general manager Tom Francano, threw the cheesesteak at him, and ran.

Francano can be seen throwing pieces of the sandwich back toward the fleeing man. He was not injured, police said.

By Friday, Francano was willing to revisit the moment under friendlier circumstances.

Justin Camardo, co-owner of Dough Head Pizza across the intersection, posted an Instagram video with the caption: “We heard Pat’s was throwing food around, so naturally we had to see what all the hype was about.”

The video shows Camardo walking across the street with a slice of pizza and handing it to Francano, who promptly smashes it into Camardo’s face.

Detectives initially investigated Wednesday’s episode as an assault. Olivieri said Friday that he was disappointed that the man had been charged only with summary harassment and questioned whether it would provide the deterrent he sought.

“What are they going to give him, community service?” he said. “Maybe he should come over here and sweep the pavement.”

Pat’s has dealt with thrown drinks, food, coins, and other objects during its 96-year history, Olivieri said. What made Wednesday’s incident different, he said, was the camera — evidence, in his view, that the confrontation had been staged for an audience.

Olivieri said he pursued the case because he feared that allowing the episode to pass without consequences could invite copycats at Pat’s and other restaurants. Businesses already contend with the positive and negative effects of influencers, he said; deliberately provoking employees for online attention crossed another line.

“I not only did this for me,” Olivieri said. “I think it’s for everyone else who has had an issue with a pizza influencer, a hoagie influencer, or whatever.”