Humans evolved to be cooperative breeders
sapiens.org
sapiens.org
Another similar case is ground beef[1] where a hamburger patty can contain material from >100 cows
[1]: https://www.washingtonpost.com/news/wonk/wp/2015/08/05/there...
Also all modern dairies pasteurize all milk meant for consumption, which means the bacteria in it are dead anyway.
Source: grew up on a farm, studied agriculture.
> At six months of age, the analysis revealed that 20 metabolites differed in overweight versus lean women. Additionally, milk adenine in obese mothers was associated with greater weight gain in infants.
It is not considered harmful to have a beer while breastfeeding. I'm sure the subject of the photo was aware of how it would be perceived and didn't put her drink out of frame to help normalize public breastfeeding.
That said, I don't think she's drinking right now at all, just in case. Even if the alcohol clears from your bloodstream in a few hours, I would be surprised if the lingering metabolites and effect on one's endocrine system didn't effect the contents of the milk somehow.