This might help somehow:
http://www.question2answer.org/qa/15565/how-to-check-on-question-view-page-if-post-is-by-logged-in-user
+ qa-app-format, see from line 223:
// Useful stuff used throughout function
$postid=$post['postid'];
$isquestion=($post['basetype']=='Q');
$isanswer=($post['basetype']=='A');
$isbyuser=qa_post_is_by_user($post, $userid, $cookieid);
$anchor=urlencode(qa_anchor($post['basetype'], $postid));
$elementid=isset($options['elementid']) ? $options['elementid'] : $anchor;
$microformats=@$options['microformats'];
$isselected=@$options['isselected'];