1
0
mirror of https://github.com/typecho/plugins.git synced 2025-04-22 14:09:50 +08:00

评论识别博客作者

This commit is contained in:
DT27 2016-03-13 10:12:01 +08:00
parent 3d84fe72f8
commit ccfa924e0f

View File

@ -45,7 +45,7 @@ class B3logForHacPai_Action extends Typecho_Widget
if ($post) {
$comment = array(
'cid' => $result->comment->articleId,
'created' => Helper::options()->gmtTime,
'created' => $result->comment->time,
'text' => $result->comment->content,
'author' => $result->comment->authorName,
'mail' => $result->comment->authorEmail,
@ -55,6 +55,8 @@ class B3logForHacPai_Action extends Typecho_Widget
'ownerId' => $post['authorId'],
'type' => 'comment',
'status' => 'approved',
'authorId' => $result->comment->isArticleAuthor?1:0,
);
//print_r($result->comment->articleid);
//$article = Typecho_Widget::widget('Widget_Users_Author@' . $this->cid, array('cid' => $result->comment->articleId));