These actions need some refactoring so I'm not repeating so much code from the Posts Controller