updating post data structure