Update post.cc

Copying in code directly.