Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How to remove multiple items from queue

I think that every comment and discussion is being added to the AntiSpam plugin queue. Is this correct?
Anyway, I have removed a spamming user and its comments are still on the list. I can only mark them as not spam, since if I click the other button I obviously get an error.
How can I remove this entries?

Comments

  • Options
    hgtonighthgtonight ∞ · New Moderator
    edited May 2013

    What error do you get?

    What version of Vanilla are you running?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    It's the 404, since the user has been removed. Anyway, the 404 is not the problem. I'd like to know how to remove the entries.

  • Options

    We are using this sql to remove orphaned spam log entries:

    -- DELETE DISCUSSIONS

    create table tmp_spam_id (tid int(10));

    insert into tmp_spam_id
    SELECT l.ID FROM GDN_AntiSpamLog l
    LEFT OUTER JOIN GDN_Discussion d ON l.ForeignID = d.DiscussionID
    WHERE d.DiscussionID IS NULL
    AND l.ForeignType = 'discussion';

    DELETE FROM GDN_AntiSpamLog
    WHERE
    ForeignType = 'discussion'
    AND ID IN (
    SELECT tid FROM tmp_spam_id
    );

    DROP TABLE tmp_spam_id;

    -- DELETE COMMENTS

    create table tmp_spam_id (tid int(10));

    insert into tmp_spam_id
    SELECT l.ID FROM GDN_AntiSpamLog l
    LEFT OUTER JOIN GDN_Comment c ON l.ForeignID = c.CommentID
    WHERE c.CommentID IS NULL
    AND l.ForeignType = 'comment';

    DELETE FROM GDN_AntiSpamLog
    WHERE
    ForeignType = 'comment'
    AND ID IN (
    SELECT tid FROM tmp_spam_id
    );

    DROP TABLE tmp_spam_id;

    That's no solution to the underlying problem, but helps for the moment.

    We are thinking of ways to solve our spam problems and maybe we will create a fork of this module, enhace it and share it here again. Nothing promised right now though

Sign In or Register to comment.