DRY the posts controller a little bit