Fix display of sharing sidebar

The toggling with story publish/unpublish got broken in previous commits.