WordPress Thumbnail add action if no thumbnail

The hook the_post is not the right hook for this.

You can add a filter to the_content, see http://codex.wordpress.org/Plugin_API/Filter_Reference/the_content