gresakg (@gresakg)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @gresakg

    Participant

    Thanks, for helping Robin. I believe your solution would work too, it’s just that we are trying to avoid or even reduce db overhead.

    @gresakg

    Participant

    Hi, allow me to join in. I am Martin’s collegue and we are dealing with this issue together.

    I went into the code to see how this works. The problem is that after spam is checked using bbp_new_reply_pre_insert filter currently on line 379 in includes/replies/functions.php, the wp_insert_post runs, which is fine, but a few lines later the hook bb_new_reply hooks the function bbp_new_reply that takes care about all the extra metadata non related to the post but to various counts and date updates. However if we have spam, this function should probably not run.

    I guess we should unset this action if spam is found. Do you think this can be done using the bbp_akismet_check_post filter?

Viewing 2 replies - 1 through 2 (of 2 total)