[improve] GaoYan: Remove redundant codes in PostController and fix respective unit test.