Hide sharing buttons for private posts

Fixes #772