public void saveNewPost(Post post){
  postRepository.save(post);
  PostSearchService.index(post);
  if (post.getStatus() == PostStatus.PUBLIC) {
    hotPostService.addHotPost(post);
    hotPostService.addTaggedPost(post,post.getTags());
    newPostsService.add(post);
    newPostsService.addTaggedPost(post,post.getTags());
    countingService.incPublicPostsCount();
  }
  countingService.incPostsCount();
}

public void saveNewPost ( Post post ) { postRepository . save ( post ) ; PostSearchService . index ( post ) ; if ( post . getStatus ( ) == PostStatus . PUBLIC ) { hotPostService . addHotPost ( post ) ; hotPostService . addTaggedPost ( post , post . getTags ( ) ) ; newPostsService . add ( post ) ; newPostsService . addTaggedPost ( post , post . getTags ( ) ) ; countingService . incPublicPostsCount ( ) ; } countingService . incPostsCount ( ) ; }
only used when creating a new post
