Return object instead of just postId - issue #559