Thanks for reporting this. The query was broken and has been for a little while. It should now be fixed along with some improvements to it.
The original queries for the sharing badges Announcer, Booster, and Publicist were supposed to count the total number of unique IP Addresses that visited from a link shared to a question.
In order to calculate this we would use the
PostId from the link shared and join back to the
Posts table to aggregate the total visits under each question. This process worked great for questions shared, but as you found out there was an issue when answers were shared. There was a bug that was introduced into the code during an earlier optimization that wasn't properly looking for the
ParentId when an answer was shared. As a result, answers were not being included in the awarding of badges.
After a lot of testing this week, we determined that the easiest and most efficient way to fix this is to award these badges based on the
PostId that is shared instead of basing it on the question.
This means that if you share a link to a question, an answer, or even multiple answers on the same question that is then visited by enough unique IP Addresses you could receive badges for any of those shared links, so you technically could be awarded multiple badges for the same question.
The badge descriptions have been updated to say
Share a link to a post...
We are also in the process of awarding the badges with the new queries, so you might get some notifications in your inbox.
With the change in the logic it does mean that some users were awarded badges that would no longer qualify - since we're no longer aggregating up to the question. These numbers were very small, so we are not going to be revoking any badges due to the change in logic.
We also identified a small number of users who will receive duplicate badges on the initial rollout of the new logic - meaning they were awarded for a question with the old logic, but now are being awarded for an answer - the duplicate badges will be removed over the next few days after the corrected badges are awarded.