updated post repository method

updated post() method to return unpublished post for admin