That's a great question. I wanted to add an answer and explain it in more detail, aside from my initial comment.
you can check the user's name from the Admin Panel> Reports> Post section. Only admins have access to this section and only admins can see see the name of the anonymous person.
Also, the user still receives the reputation point, if the post is shared anonymously.