Not exactly sure why this happens but when I enable AntiSpam all of my users signatures disappear. I was able to turn them back on again by commenting out line 962 in antispam.module.

/**
* Implements hook_comment_load().
*/
function antispam_comment_load($comments) {
  // add signature and spaminess to the $comments object

  foreach ($comments as $comment) {
    $rec = db_query("SELECT signature, spaminess FROM {antispam_spam_marks} WHERE content_type='comment' AND content_id=:content_id", array(':content_id' => $comment->cid))->fetchObject();
    if ($rec) {
      $comment->signature = $rec->signature;
      $comment->spaminess = $rec->spaminess;
    }
    else {
      //$comment->signature = '';
      $comment->spaminess = 0.0;
    }
    if ($comment->uid == 0) {
      $comment->name = variable_get('anonymous', t('Anonymous'));
    }
  }
}
CommentFileSizeAuthor
#4 antispam-1551350-4.patch1.42 KBtim.plunkett

Comments

kmonty’s picture

Priority: Normal » Critical
Status: Active » Reviewed & tested by the community

While not a patch, this fix has been R+T

Related: #1143888: 'Anonymous' string assigned to comment author's name

NitroPye’s picture

I applied the patch referenced and it does not fix this issue.

NitroPye’s picture

Status: Reviewed & tested by the community » Active
tim.plunkett’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Priority: Critical » Normal
Status: Active » Needs review
StatusFileSize
new1.42 KB

This was its own bug.

This patch assumes that #1143888: 'Anonymous' string assigned to comment author's name (which adds the test class) was committed first.

tim.plunkett’s picture

Sending to bot.

tim.plunkett’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.