updated logic for hiding posts for signed in users