update logic for share button deduping
Merge pull request #7401 from guardian/sharebtndedupe

update logic for share button deduping