Adding published flag to post