update logic for share button deduping

roughly factor main media into the social button deduping logic

should fix this:
![image](https://cloud.githubusercontent.com/assets/960919/5185083/328f5ca0-74b4-11e4-8837-58fa98f8e4f8.png)

Maybe leave a comment above this explaining what its intention is for a future self.