added 'visibility' field to post