Update Post.php

The original code wasn't working