Refactor star/unstar routes for posts and comments