updated isPublic attribute for post