How to get uid from a node on which is commented? I'm using hook_comment_view($comment) and I'd like to confer the uid from the comment ($comment-&gt;uid) with the uid from the node on which is commented. I thought of $node-&gt;uid, but I don't know how I can define $node.

Any suggestions?
I could load the $nid via the comment and confer the uid's like this:

function mymodule_comment_view($comment) {
 $nid = $comment-&gt;nid;
 $node = node_load($nid);
 if ($comment-&gt;uid == $node-&gt;uid){
    //do something
 }
}