adjusted Posts controller