When two Domino’s Pizza employees filmed a prank in the restaurant’s kitchen, they decided to post it online. In a few days, thanks to the power of social media, they ended up with felony charges, more than a million disgusted viewers, and a major company facing a public relations crisis.

In videos posted on YouTube and elsewhere this week, a Domino’s employee in Conover, N.C., prepared sandwiches for delivery while putting cheese up his nose, nasal mucus on the sandwiches, and violating other health-code standards while a fellow employee provided narration.

The two were charged with delivering prohibited foods.

By Wednesday afternoon, the video had been viewed more than a million times on YouTube. References to it were in five of the 12 results on the first page of Google search for “Dominos,” and discussions about Domino’s had spread throughout Twitter.

As Domino’s is realizing, social media has the reach and speed to turn tiny incidents into marketing crises. In November, Motrin posted an ad suggesting that carrying babies in slings was a painful new fad. Unhappy mothers posted Twitter complaints about it, and bloggers followed; within days, Motrin had removed the ad and apologized.