Modify ↓
#12722 closed enhancement (fixed)
Ticket comment edits are not passed through the SpamFilter
| Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Milestone: | plugin - spam-filter |
| Component: | plugin/spamfilter | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Dirk Stöcker | Branch: | |
| Release Notes: |
Comment edits are passed through the spam filter with Trac 1.3.2 and later. |
||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
First mentioned in comment:12:ticket:10909. It looks like changes are passed to the FilterSystem in plugins/1.2/spam-filter/tracspamfilter/adapters.py@:35#L25.
It looks like we may need to call ITicketManipulators when editing a comment, and then additional modifications to SpamFilter may be needed.
Attachments (0)
Change History (4)
comment:1 by , 9 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 9 years ago
comment:4 by , 8 years ago
| Release Notes: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.



To check spam requires:
—
The same issue exists for the new edit comment functionality.
Probable solution: Add a new ICommentManipulator interface which handles these ticket changes as well as the wiki comment changes, like…
class ICommentManipulator(Interface): """Miscellaneous manipulation of comments.""" def prepare_commentchange(req, fields, actions): """Not currently called, but should be provided for future compatibility.""" def validate_commentchange(req, old_comment, new_comment, type): """Validate a comment after it's been changed.type may be "ticket", "wiki".