main ← fix_share_badge_not_unique
opened 04:53AM - 27 Nov 25 UTC
Prior to this change, the SQL query string returned by `BadgeQueries.sharing_bad…ge`
was simply counting the number of `incoming_links` rows for a given post
and sharer (user_id). This is however incorrect as the sharing badges
description states that the visitors have to be unique.
This commit updates `BadgeQueries.sharing_badge` to count only unique (ip_address, current_user_id) pairs in incoming_links, so repeated hits from the same visitor no longer inflate share badge counts.