Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Goal
- When text analysis is unsure, retain posts as "unpublished" for manual moderation instead of showing a CAPTCHA.
Details
- The default behavior for an "unsure" response is to show a CAPTCHA.
- The Mollom module already supports to retain posts for manual moderation when text analysis identifies spam.
- What is missing and desired is to retain posts for manual moderation when text analysis is unsure, instead of showing a CAPTCHA.
Related issues
- #881534: Allow to unpublish spam posts instead of rejecting — added fundamental support for retaining posts as unpublished.
- #1096412: Allow to disable fall-back CAPTCHA for text analysis — considers to add support for Mollom's "binary mode", which makes Mollom only return "spam" or "ham", but never "unsure." That is not helpful for this issue though, since we want to react on "unsure". Thus, telling the backend to never return it would be incompatible.
- #364575: Support alternative spam rejection methods than a CAPTCHA (e.g. unpublishing) — intends to introduce a more sophisticated event system for Mollom module, allowing to precisely specify the actions to perform for various triggers.
Comment | File | Size | Author |
---|---|---|---|
#14 | 1817446-moderate-unsure.patch | 9.26 KB | sun |
#12 | 1817446-moderate-unsure.patch | 9.25 KB | sun |
#10 | 1817446-moderate-unsure.patch | 9.22 KB | sun |
#8 | 1817446-moderate-unsure.patch | 9.22 KB | sun |
#7 | 1817446-moderate-unsure.patch | 9.22 KB | sun |
Comments
Comment #1
sunIf all goes well, this should actually work already.
Comment #2
sunAdded tests.
Comment #3
sunScreenie of new setting:
Comment #4
sunCommitted and pushed to 7.x-2.x.
Comment #5
OldAccount CreditAttribution: OldAccount commentedDoes this setting only show up for comments? I want to be able to retain/moderate spam webform submissions but am not seeing the option (7.x-2.3).
Comment #7
sun@lrobeson: In general, the "retain as unpublished" facility is only available for posts/entities that support a notion of a "unpublished" status. Webform submissions do not have such a status.
Attached patch backports this code to 6.x-2.x.
Comment #8
sunMissing $ret in db_add_field() of the module update.
Comment #10
sunComment #12
sunSorry, the form constructor used a facility that only exists in D7+. This one should pass.
Comment #14
sunHeh. It would definitely help if I'd locally run the tests on D6 instead of D7 ;)
Comment #15
sunCommitted and pushed to 6.x-2.x.
Comment #16.0
(not verified) CreditAttribution: commentedUpdated issue summary.