Changed event hooks to only affect the posts endpoint. Fixes #20.