I do GDPR stuff for lattice. Mr J is basically correct. One of the guiding principles of GDPR is that you clearly communicate the purpose for which data is being collected and to get explicit consent for this usage, so in this case I would say that it was not clearly communicated that the names would be shared publicly.