diff --git a/components/comments.php b/components/comments.php index 3871cd0..1dc6f9f 100644 --- a/components/comments.php +++ b/components/comments.php @@ -31,10 +31,12 @@ function threadedComments($comments, $options) {
mail)) { - QQAvatar($comments->mail, $comments->author, 40); - }else { - gravatar($comments->mail, 50, $GLOBALS['gravatarUrl'], $comments->author); + if ($comments->type == 'comment') { + if ($GLOBALS['QQAvatar'] == 'show' && isQQEmail($comments->mail)) { + QQAvatar($comments->mail, $comments->author, 40); + }else { + gravatar($comments->mail, 50, $GLOBALS['gravatarUrl'], $comments->author); + } } // 引用头像 if ($comments->type == 'pingback') { diff --git a/components/sidebar.php b/components/sidebar.php index b689aed..1cb62fe 100644 --- a/components/sidebar.php +++ b/components/sidebar.php @@ -108,11 +108,15 @@ next()): ?>
  • options->QQAvatar == 'show' && isQQEmail($comments->mail)) { - QQAvatar($comments->mail, $comments->author, 40); - }else { - gravatar($comments->mail, 50, $this->options->gravatarUrl, $comments->author); + // 普通评论头像 + if ($comments->type == 'comment') { + if ($this->options->QQAvatar == 'show' && isQQEmail($comments->mail)) { + QQAvatar($comments->mail, $comments->author, 40); + }else { + gravatar($comments->mail, 50, $this->options->gravatarUrl, $comments->author); + } } + // 引用头像 if ($comments->type == 'pingback') { echo ''; }