Instead of the global $post, it would be better to check the `comment_post_ID` property for the comment. The comment ID is passed in as the second arg that we can use for the lookup.