updated post and set publish flag to true