Generate post id at server. Use shortId to generate postId. Passed the first addPost.