Hi, I have the spam module enabled for comments and blog posts. I see the "mark as spam" link on the comments, but I don't see it appearing on the actual blog posts.

Do I need to do anything extra for this to appear?

Thanks!

Justinian

Comments

reikiman’s picture

Oh, good, I'm not crazy, someone else is having this problem.

In my case I'm not even seeing the 'mark as spam' link on comments.

reikiman’s picture

The method spam.module:spam_links is what I'd expect to control this. It contains

  if (spam_invoke_module($type, 'filter_content_type', $content)) {
    if (user_access('administer spam')) {
...
    }
  }

Either condition would block creation of the links in question. I don't understand the first condition except it seems one thing it checks is whether the given content type is checked by the spam module. The second one however indicates that you have to enable 'administer spam' for whatever role you have. Shouldn't the second check also check if $user->uid === 1 ??

gnassar’s picture

Assigned: Unassigned » gnassar

No, user_access automatically returns TRUE for uid 1.

gnassar’s picture

Status: Active » Closed (cannot reproduce)

Seems to work fine for me -- blogs are selected in the "content to filter" part of the Spam admin page, and the user has permission to administer spam.

Please re-open if you continue to have this problem, confirm that both above are true, and we'll troubleshoot from there.