A Glasgow woman has been sentenced to 180 hours of community service for a protest at a dairy in 2022