update logic for share button deduping

roughly factor main media into the social button deduping logic