I'm sorry to be dense, but that's a naive view, that an otherwise sleazy sociopath can be forced to behave by public opinion.
Good people give food to homeless because they see value in doing so, not because they fear repercussions from public opinion.