Added publish and subscribe for posts and replies