deleted unused function of 'PostsCtrl'
Revert "deleted unused function of 'PostsCtrl'"

This reverts commit 0dec4ab93d2f19db3538b7ebcd5e447df2ba1f86.
commit with merge