How to get uid from a node on which is commented?
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
 }
}